note 7008 deleted from function.trim by felipe

From: Date: Sat, 29 Dec 2007 18:30:29 +0000
Subject: note 7008 deleted from function.trim by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134157@lists.php.net to get a copy of this message
Note Submitter: alivesay at yellowbrix dot com ---- If you are trying to take out whitespace from the middle of a string, you need to use a different function, str_replace: <PRE>str_replace(" ", "", "United Kingdom);</PRE> [Editor's note: This strips *all* spaces present in the string, not just the ones in the middle ]

« previous php.notes (#134157) next »