$num = int($string); $num = $string + 0;