convert string to amount php code example
Example 1: php string to int
intval($string);
Example 2: Convert a String to a Number in PHP
phpCopy$variableName = (int)$stringName
$variableName = (float)$stringName
intval($string);
phpCopy$variableName = (int)$stringName
$variableName = (float)$stringName