Answers for "how to check datatype of variable in php"

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
1

how to find datatype of a variable in php

<?php
$a = 3;
echo gettype($a);
?>
Posted by: Guest on February-23-2022
0

get type of variable php

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

check type in php

gettype ( mixed $var ) : string
Posted by: Guest on February-22-2020

Code answers related to "how to check datatype of variable in php"

Browse Popular Code Answers by Language