Null resource data type in php examples
In php null is not a value. It comes under resource data type. We can consider a variable as null data type. Using 3 conditions
1. If the variable is not set with any value
2. If the variable is set with null value
3. If the variable value is unset
NOTE: in php by using unset function we can unset the variable values.
is_null function in php examples
This function checks weather the input variable is null or not
<?php
$sno =100;
Unset ($sno);
Echo is_null ($sno);
?>
In php null is not a value. It comes under resource data type. We can consider a variable as null data type. Using 3 conditions
1. If the variable is not set with any value
2. If the variable is set with null value
3. If the variable value is unset
NOTE: in php by using unset function we can unset the variable values.
is_null function in php examples
This function checks weather the input variable is null or not
<?php
$sno =100;
Unset ($sno);
Echo is_null ($sno);
?>