note 54880 added to function.array-walk
| From: | webmaster at tmproductionz dot com | Date: | Mon, 18 Jul 2005 19:54:57 +0000 |
| Subject: | note 54880 added to function.array-walk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92127@lists.php.net to get a copy of this message | ||
to the note right before this one. that will only trim leading and trailing white space. if you
want to trim white space inside the string (ie 'hello world' to 'hello
world') you should use this:
$val = preg_replace ( "/\s\s+/" , " " , $val ) ;
this will also trim leading and trailing white space.
----
Manual Page -- http://www.php.net/manual/en/function.array-walk.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54880
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54880&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54880&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54880&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54880&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54880&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54880&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54880&report=yes
Search -- http://master.php.net/manage/user-notes.php