PHP tutorial – Data types upon initialization

This is a basic program that will help you understand that whenever we initialize any variable in PHP its type is set to NULL.

[php]
<?php
$foo;
echo gettype($foo);
?>
[/php]

Leave a Reply

Your email address will not be published. Required fields are marked *