Hey all
Just one NOOB question that is bugging me.
What's different and when should we use them?
%s anb %d
As far as i can tell they are the same.
autocolismo wrote:What's different and when should we use them?
in what context?
In sprintf() and printf(), %s is the place-holder for a string value, while %d is the place-holder for a decimal integer value. See http://www.php.net/sprintf for more information on how to use them.
Thank you very much. Now i understand 😃