Answers for "gettype() function in PHP"

PHP
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