PHP Tutorial - PHP is_null() function






is_null(value) returns true if value is null.

Syntax

PHP is_null() function has the following syntax.

is_null(value)

Parameter

  • value is the variable being type checked.

Return

PHP is_null() function returns true if value is null.





Example

Is it NULL.


<?php
var_dump(is_null($value));

?>

The code above generates the following result.