<?php
$arr = array
(
"name" => "peter griffin",
"age" => "41",
"email" => "peter@example.com",
);
$filters = array
(
"name" => array
(
"filter"=>FILTER_CALLBACK,
"flags"=>FILTER_FORCE_ARRAY,
"options"=>"ucwords"
),
"age" => array
(
"filter"=>FILTER_VALIDATE_INT,
"options"=>array
(
"min_range"=>1,
"max_range"=>120
)
),
"email"=> FILTER_VALIDATE_EMAIL,
);
print_r(filter_var_array
- Output for 5.4.18 - 5.4.19
- Parse error: syntax error, unexpected end of file in /in/ODQnL on line 29
Process exited with code 255. - Output for 5.4.0 - 5.4.17
- Parse error: syntax error, unexpected end of file in /in/LXdcI on line 29
Process exited with code 255. - Output for 5.3.0 - 5.3.27
- Parse error: syntax error, unexpected $end in /in/LXdcI on line 29
Process exited with code 255.
preferences:
181.34 ms | 1395 KiB | 55 Q