string php para int
intval($string);
Concerned Chipmunk
intval($string);
// intval() function to convert
// string into integer
echo intval($num), "\n";
method_1:
intval($string);//for string to integer
floatval($string); //for string to float
method_2:
$int = (int)$string;//string to int
$float = (float)$string;//string to float