note 81500 added to function.trim

From: Date: Sat, 01 Mar 2008 14:50:25 +0000
Subject: note 81500 added to function.trim
Groups: php.notes 
Request: Send a blank email to php-notes+get-136637@lists.php.net to get a copy of this message
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() ---- Server IP: 62.237.7.3 Probable Submitter: 80.221.60.197 ---- Manual Page -- http://www.php.net/manual/en/function.trim.php Edit -- https://master.php.net/note/edit/81500 Del: integrated -- https://master.php.net/note/delete/81500/integrated Del: useless -- https://master.php.net/note/delete/81500/useless Del: bad code -- https://master.php.net/note/delete/81500/bad+code Del: spam -- https://master.php.net/note/delete/81500/spam Del: non-english -- https://master.php.net/note/delete/81500/non-english Del: in docs -- https://master.php.net/note/delete/81500/in+docs Del: other reasons-- https://master.php.net/note/delete/81500 Reject -- https://master.php.net/note/reject/81500 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136637) next »