note 31510 added to function.trim
| From: | pk1 at ukf dot net | Date: | Thu, 24 Apr 2003 14:49:23 +0000 |
| Subject: | note 31510 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47031@lists.php.net to get a copy of this message | ||
The trim function fails to trim this string
http://www.
The character at the beginning is "A0" in hex.
I did
$url = " http://www.";
// These fail
$url = trim($url);
$url = trim($url,0xA0);
$url = trim($url,160);
// This works
$url = trim($url," ");
// Note the character inbetween the quotes is NOT a normal space character.
--
http://www.php.net/manual/en/function.trim.php
http://master.php.net/manage/user-notes.php?action=edit+31510
http://master.php.net/manage/user-notes.php?action=delete+31510
http://master.php.net/manage/user-notes.php?action=reject+31510