Answers for "change a variable type to int in php"

PHP
3

convert to int php

$myintvariable = intval($myvariable);
Posted by: Guest on February-16-2020
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