Answers for "how to get variable type in php"

PHP
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

Code answers related to "how to get variable type in php"

Browse Popular Code Answers by Language