note 38172 added to function.ltrim
| From: | php-general at lists dot php dot net | Date: | Wed, 10 Dec 2003 18:07:41 +0000 |
| Subject: | note 38172 added to function.ltrim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61763@lists.php.net to get a copy of this message | ||
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 !
----
Manual Page -- http://www.php.net/manual/en/function.ltrim.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38172
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38172&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38172&report=yes
Search -- http://master.php.net/manage/user-notes.php