[PHP] Can you apply two filters to a field?

Willis

New member
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.
 
Back
Top