decimal to integer php code example
Example 1: php string to int
intval($string);
Example 2: convert to int php
$myintvariable = intval($myvariable);
Example 3: string to int php
$str = "10";
$num = (int)$str;
intval($string);
$myintvariable = intval($myvariable);
$str = "10";
$num = (int)$str;