Answers for "php cast int to float"

PHP
8

php to int

$num = "3.14";
$int = (int)$num;
Posted by: Guest on April-13-2020
3

php float value

floatval ($var)
Posted by: Guest on June-19-2019

Browse Popular Code Answers by Language