Answers for "int type casting in php"

PHP
0

php typecast to int

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

type casting in php

$x = 2.5;
$y = (int) $x; // cast $x to integer
Posted by: Guest on August-25-2021

Code answers related to "int type casting in php"

Browse Popular Code Answers by Language