filter_input and $_POST deep array
| From: | jean-baptiste verrey | Date: | Fri, 23 Sep 2011 09:51:27 +0000 |
| Subject: | filter_input and $_POST deep array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-315004@lists.php.net to get a copy of this message | ||
Hi,
I have using a form that gives me something like
$_POST=array(
'login'=>array(
'email'=>'hello@myphp.net',
'password'=>'123456'
)
)
is there a way to use filter_input function to filter the values? I tried
filter_input(INPUT_POST,'login[email]') but it does not work!
Regards,
Jean-Baptiste Verrey