how to convert string to numeric php code example
Example 1: php string to int
intval($string);
Example 2: Convert a String to a Number in PHP
phpCopysettype($variableName, "typeName");
intval($string);
phpCopysettype($variableName, "typeName");