how to convert php function parameters to integer code example Example: php string to int intval($string);