note 115786 added to filter.filters.misc
| From: | thatindividual dot zhang at gmail dot com | Date: | Tue, 23 Sep 2014 07:05:58 +0000 |
| Subject: | note 115786 added to filter.filters.misc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200507@lists.php.net to get a copy of this message | ||
Here is an example, since I cannot find one through out php.net"
<?php
/**
* Strip whitespace (or other non-printable characters) from the beginning and end of a string
* @param string $value
*/
function trimString($value)
{
return trim($value);
}
$loginname = filter_input(INPUT_POST, 'loginname', FILTER_CALLBACK,
array('options' => 'trimString'));
----
Server IP: 216.12.221.133
Probable Submitter: 203.126.64.67
----
Manual Page -- http://php.net/manual/en/filter.filters.misc.php
Edit -- https://master.php.net/note/edit/115786
Del: integrated -- https://master.php.net/note/delete/115786/integrated
Del: useless -- https://master.php.net/note/delete/115786/useless
Del: bad code -- https://master.php.net/note/delete/115786/bad+code
Del: spam -- https://master.php.net/note/delete/115786/spam
Del: non-english -- https://master.php.net/note/delete/115786/non-english
Del: in docs -- https://master.php.net/note/delete/115786/in+docs
Del: other reasons-- https://master.php.net/note/delete/115786
Reject -- https://master.php.net/note/reject/115786
Search -- https://master.php.net/manage/user-notes.php