[Fwd: [PHP-NOTES] note 43927 added to function.rtrim]
| From: | Tom Sommer | Date: | Thu, 08 Jul 2004 21:22:17 +0000 |
| Subject: | [Fwd: [PHP-NOTES] note 43927 added to function.rtrim] | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969361772@lists.php.net to get a copy of this message | ||
Anyone?
-------- Original Message --------
Subject: [PHP-NOTES] note 43927 added to function.rtrim
Date: 8 Jul 2004 21:15:07 -0000
From: kotouc@rn2.php.net
To: php-notes@lists.php.net
Probably typo.. The above example returns warning of invalid range... Also I am not aware of any HEX 00 character, let me know if you see one;)
<?php
//not working
$clean = rtrim($binary, "\0x00..\0x1F");
//working
$clean = rtrim($binary, "\x01..\x1F");
?>