Answers for "how in php know what the type of variable"

PHP
2

php what type of variable is it

echo gettype($var1)."\n"; 
echo gettype($var2)."\n"; 
echo gettype($var3)."\n";
Posted by: Guest on March-09-2021
0

get type of variable php

$var = 1200;
gettype($var); // this will return integer
Posted by: Guest on January-04-2022

Code answers related to "how in php know what the type of variable"

Browse Popular Code Answers by Language