PHP function is_null()

Availability in versions: PHP 4.0.4

Finds whether a variable is &null;

Parameters

Parameter Data type Default value Note
$var mixed not The variable being evaluated.

Return values

bool

true if var is null, false otherwise.

Other resources

Official is-null documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.