note 92181 added to function.trim

From: Date: Mon, 13 Jul 2009 11:04:29 +0000
Subject: note 92181 added to function.trim
Groups: php.notes 
Request: Send a blank email to php-notes+get-158225@lists.php.net to get a copy of this message
To Andrew: Please note that calling trim twice, as you proposed, won't work the same way as calling trim with all default chars added to the second arg array. For ex., for string $test=" ~ test ~ ", trim(trim($test, array('~'))) will return "~ test ~". So it shouldn't be considered as a possible solution. ---- Server IP: 78.41.104.4 Probable Submitter: 217.170.218.198 ---- Manual Page -- http://www.php.net/manual/en/function.trim.php Edit -- https://master.php.net/note/edit/92181 Del: integrated -- https://master.php.net/note/delete/92181/integrated Del: useless -- https://master.php.net/note/delete/92181/useless Del: bad code -- https://master.php.net/note/delete/92181/bad+code Del: spam -- https://master.php.net/note/delete/92181/spam Del: non-english -- https://master.php.net/note/delete/92181/non-english Del: in docs -- https://master.php.net/note/delete/92181/in+docs Del: other reasons-- https://master.php.net/note/delete/92181 Reject -- https://master.php.net/note/reject/92181 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158225) next »