PHP is_null() function

Description

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.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions