Answers for "format number to integer php"

PHP
43

php string to int

intval($string);
Posted by: Guest on February-20-2020
9

php number format

$num = 12345.6789;
echo number_format($num, 2, '.', '') //12345.67
echo number_format($num, 3, ',', '.') //12.345,678
Posted by: Guest on May-14-2020

Browse Popular Code Answers by Language