note 13423 added to function.trim.php
| From: | chok at ece dot gatech dot edu | Date: | Fri, 15 Jun 2001 21:11:53 +0000 |
| Subject: | note 13423 added to function.trim.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14326@lists.php.net to get a copy of this message | ||
note that when you're doing trim( $str ), where $str is a HTML form posted variable such that
$str = " " (HTML interpreted), it doesn't work.
to clear all " " ( ord() = 160 ), use:
$str = str_replace( chr( 160 ), '', $str );
http://www.php.net/manual/en/function.trim.php