PHP is_null() function

In this chapter you will learn:

  1. Description for PHP is_null() function
  2. Syntax for PHP is_null() function
  3. Parameter for PHP is_null() function
  4. Return value for PHP is_null() function
  5. Example - Is it NULL.

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.

Next chapter...

What you will learn in the next chapter:

  1. Description for PHP is_numeric() function
  2. Syntax for PHP is_numeric() function
  3. Parameter for PHP is_numeric() function
  4. Return value for PHP is_numeric() function
  5. Example - Is it a numeric value
Home » PHP Tutorial » PHP Data Type Functions
PHP boolval() function
PHP floatval() function
PHP gettype() function
PHP intval() function
PHP is_array(value) function
PHP is_bool() function
PHP is_float() function
PHP is_int() function
PHP is_null() function
PHP is_numeric() function
PHP is_object() function
PHP is_resource() function
PHP is_string() function
PHP isset() function
PHP settype() function
PHP strval() function