<?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 ';' in /in/4Lt2Q on line 29
Process exited with code 255. - Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
- Parse error: syntax error, unexpected ';' in /in/fmFhd on line 29
Process exited with code 255.
preferences:
185.77 ms | 1395 KiB | 55 Q