how to convert string into number format php code example Example: php string to int intval($string);