Re: ext/filter, add input_get_args, support of scalar or array result
| From: | Pierre | Date: | Mon, 01 May 2006 14:46:16 +0000 |
| Subject: | Re: ext/filter, add input_get_args, support of scalar or array result | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23065@lists.php.net to get a copy of this message | ||
hello,
I forgot the scalar/array part :)
I also added FILTER_FLAG_SCALAR and FILTER_FLAG_ARRAY. These flags let
you choose if you allow scalar only or array.
For example: foo.php?a[]=1&a[]=2 will be invalid if you use the
FILTER_FLAG_SCALAR. I like to add this feature to input_get as well.
FILTER_FLAG_ARRAY will always returns you an array, even for
foo.php?a=1 (array(1)).
--Pierre