note 91060 added to function.trim

From: Date: Fri, 22 May 2009 19:39:31 +0000
Subject: note 91060 added to function.trim
Groups: php.notes 
Request: Send a blank email to php-notes+get-155896@lists.php.net to get a copy of this message
Note for trimming arrays that you can easily use array_map if you don't want to specify the characters. <?php var_dump(array_map('trim', Array(' Test ', 'Test ', ' Test'))); ?> ---- Server IP: 208.69.120.35 Probable Submitter: 64.202.160.65 ---- Manual Page -- http://www.php.net/manual/en/function.trim.php Edit -- https://master.php.net/note/edit/91060 Del: integrated -- https://master.php.net/note/delete/91060/integrated Del: useless -- https://master.php.net/note/delete/91060/useless Del: bad code -- https://master.php.net/note/delete/91060/bad+code Del: spam -- https://master.php.net/note/delete/91060/spam Del: non-english -- https://master.php.net/note/delete/91060/non-english Del: in docs -- https://master.php.net/note/delete/91060/in+docs Del: other reasons-- https://master.php.net/note/delete/91060 Reject -- https://master.php.net/note/reject/91060 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#155896) next »