PHP is_null() function

By using the is_null function, we can check whether the variable is NULL or not. This function was introduced in PHP 4.0.4.

SYNATX:

Parameter

Parameter Description Is compulsory
var The variable being evaluated. compulsory

Return Type:

The PHP is_null() function returns true if var is null, otherwise false.

Important Note:

We can unset the variable value by using the unset function.

Example 1

PHP is_null() function

Example 2

PHP is_null() function

Example 3

PHP is_null() function
Next TopicPHP Tutorial




Contact US

Email:[email protected]

is_null() Function
10/30