Answers for "php typecast decimal"

PHP
1

string to decimal php

$num = (double) "10.12";
Posted by: Guest on January-26-2021
0

php typecast to int

$num = "3.14";
$int = (int)$num;
$float = (float)$num;
Posted by: Guest on June-22-2020

Browse Popular Code Answers by Language