how to typecast from string to number in php code example Example: php string to int intval($string);