note 81500 deleted from function.trim by nlopess

From: Date: Sat, 01 Mar 2008 20:10:30 +0000
Subject: note 81500 deleted from function.trim by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-136644@lists.php.net to get a copy of this message
Note Submitter: gurunars at gmail dot com ---- I implemented the trimAll() function this way: function trimAll($input) { $input = trim($input); $output = ereg_replace( ' +', ' ', $input ); return $output; } Quite easy to use instead of usual trim()

« previous php.notes (#136644) next »