note 11763 added to Chr
| From: | mwerle at NOSPAM dot yahoo dot com | Date: | Tue, 06 Mar 2001 12:23:09 +0000 |
| Subject: | note 11763 added to Chr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11930@lists.php.net to get a copy of this message | ||
ddawson:
I wouldn't expect it to work - you've mixed up strings and characters in your printf()
statements and variables.
* chr(x) is a _single character string_.
* x is a character - and yes, there is a difference.
Use %s for strings, and %c for characters in your printf()'s and it all works :)
http://www.php.net/manual/en/function.chr.php