A Note on NULL Values

Posted by Mor Collections On Thursday, January 1, 2015 0 comments
// check type of uninitialized variable
// returns NULL
echo gettype($me);

// assign a value
$me = 'David';
// check type again
// returns STRING
echo gettype($me);
// deinitialize variable
unset($me);
// check type again
// returns NULL
echo gettype($me);
?>
READ MORE

Related Topic