Home > PHP > Function > Variable handling > is_null()

is_null()

is_null - Finds whether a variable is

NULL

Syntax

bool is_null (mixed $var)

Arguments

  • var - The variable being evaluated.

Description

Finds whether the given variable is NULL.

Version

PHP 4.0.4, 5

Return value

Returns TRUE if var is null, FALSE otherwise.