PHP is_null() function
In this chapter you will learn:
- Description for PHP is_null() function
- Syntax for PHP is_null() function
- Parameter for PHP is_null() function
- Return value for PHP is_null() function
- 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:
- Description for PHP is_numeric() function
- Syntax for PHP is_numeric() function
- Parameter for PHP is_numeric() function
- Return value for PHP is_numeric() function
- Example - Is it a numeric value
Home » PHP Tutorial » PHP Data Type Functions