note 98074 deleted from function.trim by danbrown
| From: | danbrown@php.net | Date: | Mon, 24 May 2010 17:12:53 +0000 |
| Subject: | note 98074 deleted from function.trim by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169568@lists.php.net to get a copy of this message | ||
Note Submitter: Jean Paul Galea
----
The comment below by "Onur Nizam" has a lot of redundant code. No need to have
removeSpaces(), you can call trim() directly instead.
If you're working with forms I suggest searching for good tutorials about filtering and
validating data submitted through forms and there are a lot of frameworks and libraries that already
take care of this.