php make string integer code example
Example 1: php string to int
intval($string);
Example 2: string to int php
$str = "10";
$num = (int)$str;
Example 3: convert string to int php
intval ( mixed $var [, int $base = 10 ] ) : int
intval($string);
$str = "10";
$num = (int)$str;
intval ( mixed $var [, int $base = 10 ] ) : int