note 91680 added to function.filter-var
| From: | tedivm at tedivm dot com | Date: | Mon, 22 Jun 2009 20:26:32 +0000 |
| Subject: | note 91680 added to function.filter-var | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157251@lists.php.net to get a copy of this message | ||
The lack of documentation on the third argument caused me a good half hour of grief today, so
here's the structure for anyone else who doesn't want their life wasted by crappy
documentation:
$options = array();
$options['options']['min_range'] = 1;
$options['options']['max_range'] = 10;
$options['flags'] = FILTER_FLAG_ALLOW_OCTAL;
filter_var(3, FILTER_VALIDATE_INT, $options);
----
Server IP: 208.69.120.35
Probable Submitter: 71.89.13.29
----
Manual Page -- http://www.php.net/manual/en/function.filter-var.php
Edit -- https://master.php.net/note/edit/91680
Del: integrated -- https://master.php.net/note/delete/91680/integrated
Del: useless -- https://master.php.net/note/delete/91680/useless
Del: bad code -- https://master.php.net/note/delete/91680/bad+code
Del: spam -- https://master.php.net/note/delete/91680/spam
Del: non-english -- https://master.php.net/note/delete/91680/non-english
Del: in docs -- https://master.php.net/note/delete/91680/in+docs
Del: other reasons-- https://master.php.net/note/delete/91680
Reject -- https://master.php.net/note/reject/91680
Search -- https://master.php.net/manage/user-notes.php