filter_input_array()

Read more than one input from the outside script and filter all

General Format
=============

filter_input_array(input_type, filter_args)

input_type – A valid input type

*) INPUT_COOKIE
*) INPUT_GET
*) INPUT_ENV
*) INPUT_POST
*) INPUT_SERVER

filter_args – Array filter arguments

Example
=======

<?php
$filters = array( “phone” => FILTER_VALIDATE_INT, “url”=> FILTER_VALIDATE_URL, );
print_r(filter_input_array(INPUT_POST, $filters));
?>

Leave a Reply

Your email address will not be published. Required fields are marked *