I have this code to check some input fields. However input_28 is a list field that is sent as an array. Is there a shortcut to check the array for the filter? I dont care what it wrong or which line does not match. I just need to know if any line does not match the filter.
if($_POST['input_28'] != filter_var($_POST['input_28'], FILTER_VALIDATE_REGEXP,array("options"=>array("regexp"=> "/(\d\d\d\d-\d\d\d\d)|()/" )))){
Aucun commentaire:
Enregistrer un commentaire