I'm using this:
<?php
$args = array(
'em' => array (
'filter' => FILTER_SANITIZE_EMAIL,
'filter' => FILTER_VALIDATE_EMAIL,
),
);
$inputs = filter_input_array(INPUT_POST, $args);
?>
Does anyone know if this works?
If it doesn't then what will (apart from applying the two filters seperately)?
I checked the php.net site before asking the question, it doesn't answer my question.
<?php
$args = array(
'em' => array (
'filter' => FILTER_SANITIZE_EMAIL,
'filter' => FILTER_VALIDATE_EMAIL,
),
);
$inputs = filter_input_array(INPUT_POST, $args);
?>
Does anyone know if this works?
If it doesn't then what will (apart from applying the two filters seperately)?
I checked the php.net site before asking the question, it doesn't answer my question.