What is the significance of '%s' in PHP & MySQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dream2rule
Forum Contributor
Posts: 109
Joined: Wed Jun 13, 2007 5:07 am

What is the significance of '%s' in PHP & MySQL

Post by dream2rule »

Hello Friends,

I would like to know the significance of '%s' while using PHP-MySQL.

Regards
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

Significance? %s is used in the $format parameter for the common printf()/sprintf() function in PHP to insert a string presentation of a value passed to the function.
If you're talking about the use of %s when using PHP combined with MySQL I dunno what to answer.
Post Reply