exparintom number in php code example
Example 1: php float to int
$int = intval($float);
Example 2: php int to string
$number = 11;
// This
echo strval($number);
// Or This
echo (String) $number;
// Output
// "11"
// "11"
$int = intval($float);
$number = 11;
// This
echo strval($number);
// Or This
echo (String) $number;
// Output
// "11"
// "11"