I have a web form and when it gets submitted I post the data to a PHP page. Now I need PHP to convert every value from the POST to be converted to an integer. At the moment I tried do do it as below
$_POST = array_map("convert",$_POST);
function convert(val){
return (int)$val;
}
Is there a built-in PHP function for this.