PHP parseInt

To parse a string value (or decimal) and have the integer value of that variable, use the following code;

$string_value = "1.5";
$integer_value = intval($string_value);