Answers for "gettypes php"

PHP
0

get type of variable php

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

gettype() function in PHP

<?php

$data = array(1, 1., NULL, new stdClass, 'foo');

foreach ($data as $value) {
    echo gettype($value), "\n";
}

?>
Posted by: Guest on March-30-2022

Browse Popular Code Answers by Language