note 107699 added to function.trim
| From: | qeremy | Date: | Mon, 27 Feb 2012 16:09:45 +0000 |
| Subject: | note 107699 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186399@lists.php.net to get a copy of this message | ||
For "Example #2 Trimming array values with trim()" in "Examples" section;
<?php
$fruit = array("apple", "banana ", " cranberry ");
$fruit = array_map("trim", $fruit);
var_dump($fruit);
?>
array(3) {
[0]=>
string(5) "apple"
[1]=>
string(6) "banana"
[2]=>
string(9) "cranberry"
}
----
Server IP: 69.147.83.197
Probable Submitter: 194.27.149.90
----
Manual Page -- http://www.php.net/manual/en/function.trim.php
Edit -- https://master.php.net/note/edit/107699
Del: integrated -- https://master.php.net/note/delete/107699/integrated
Del: useless -- https://master.php.net/note/delete/107699/useless
Del: bad code -- https://master.php.net/note/delete/107699/bad+code
Del: spam -- https://master.php.net/note/delete/107699/spam
Del: non-english -- https://master.php.net/note/delete/107699/non-english
Del: in docs -- https://master.php.net/note/delete/107699/in+docs
Del: other reasons-- https://master.php.net/note/delete/107699
Reject -- https://master.php.net/note/reject/107699
Search -- https://master.php.net/manage/user-notes.php