convertion string to int in php code example
Example 1: php string to int
intval($string);
Example 2: string to int php
$str = "10";
$num = (int)$str;
Example 3: php str to int
intval("15");
intval($string);
$str = "10";
$num = (int)$str;
intval("15");