note 38172 deleted from function.ltrim by vincent
| From: | vincent@php.net | Date: | Wed, 10 Dec 2003 18:09:23 +0000 |
| Subject: | note 38172 deleted from function.ltrim by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61764@lists.php.net to get a copy of this message | ||
Note Submitter:
----
FUUCKING EXAMPLE !!!
$clean = ltrim($binary,"\0x00..\0x1F");
// trim the ASCII control characters at the beginning of $binary
// (from 0 to 31 inclusive)
\0x00 constants won't work
the correct escape is \x00 .. \x1F
Who the FUCK wrote the sapmple !!!!
It tooks me half an hour to solve this problem and btw
fuck this php shitness !!
every C coder knows hexadecimal string constants in format
\0xnn and not \xnn fuck this, fuck php...
functional programers... look at the list of your functions !
it's a real shit to work with this !