Answers for "string to int with decimal phhp"

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

Code answers related to "string to int with decimal phhp"

Browse Popular Code Answers by Language