note 59970 rejected from function.trim by nlopess
| From: | nlopess@php.net | Date: | Wed, 21 Dec 2005 20:23:28 +0000 |
| Subject: | note 59970 rejected from function.trim by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100546@lists.php.net to get a copy of this message | ||
Note Submitter: manhon824 at gmail dot com
----
I dont know the reason but I found out that if we need to remove white space in the stings obtained
by "get" method.
We should use the follow code:
$word=trim($_GET['word']);
not
$word=$_GET['word'];
trim($word);
otherwise, the "trim" will not function!
what is the difference? I also want to know. Anyway, please remind it!
hope that this is useful!