note 88218 added to function.sprintf
| From: | remy dot damour at -please-no-spam-laposte dot net | Date: | Thu, 15 Jan 2009 19:15:28 +0000 |
| Subject: | note 88218 added to function.sprintf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149297@lists.php.net to get a copy of this message | ||
With printf() and sprintf() functions, escape character is not backslash '\' but rather
'%'.
Ie. to print '%' character you need to escape it with itself:
<?php
printf('%%%s%%', 'koko'); #output: '%koko%'
?>
----
Server IP: 80.64.47.13
Probable Submitter: 84.123.119.214
----
Manual Page -- http://www.php.net/manual/en/function.sprintf.php
Edit -- https://master.php.net/note/edit/88218
Del: integrated -- https://master.php.net/note/delete/88218/integrated
Del: useless -- https://master.php.net/note/delete/88218/useless
Del: bad code -- https://master.php.net/note/delete/88218/bad+code
Del: spam -- https://master.php.net/note/delete/88218/spam
Del: non-english -- https://master.php.net/note/delete/88218/non-english
Del: in docs -- https://master.php.net/note/delete/88218/in+docs
Del: other reasons-- https://master.php.net/note/delete/88218
Reject -- https://master.php.net/note/reject/88218
Search -- https://master.php.net/manage/user-notes.php