note 31510 deleted from function.trim by aidan

From: Date: Thu, 02 Sep 2004 07:07:38 +0000
Subject: note 31510 deleted from function.trim by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75924@lists.php.net to get a copy of this message
Note Submitter: pk1 at ukf dot net ---- 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.

« previous php.notes (#75924) next »