Null data type can have only one possible value that is NULL. Here the variable represents with no value which means the variable is marked as empty by NULL.
$variable = NULL;
You Might Also Like:
- PHP: DATA TYPES There are 8 data types in PHP out of which 5 are scalar. Variables hold the values of these data types. Variables react according to...
- PHP: Data Types: Strings Strings are internally null-terminated sequence of characters. A string can be used directly in a function call or it can be stored in a variable....
- PHP: Data Types: Resources Resource are special data types. They represent PHP extension resources like database query, database connection etc. These variables types are passed around relevant functions which...
- Variables, Constants and Data Types Variables: Variables are used for storing values having the name of our choice preceded by a dollar sign. It works as a container for storing...
- PHP: Data Types: Arrays Array is the collection of indexes (key) that are mapped to values, it is a place to store a set of values. Indexes can be...
- PHP: Data Types: Booleans PHP4 introduced Booleans for the very first time. Booleans did’t existed before PHP4. Booleans are the values that may be true or false. Here both...
- PHP: Data Types: Strings: Single Quotes Single quote (”) is used to specify a string. Example: <?php echo ‘string is specified in single quote’ ?> (Related Tutorials) ...
- PHP: Basics (Upcoming Tutorials) PHP: Embedding PHP: Comments PHP: Variables PHP: Variables: Super Globals PHP: Data Types PHP: Data Types: Integers PHP: Data Types: Floating Point Numbers PHP:...





[...] Directories2 days old, no commentsPHP: Basics (Upcoming Tutorials)1 day old, 10 commentsPHP: Data Types: Null6 hours old, no commentsPHP: Data Types: Resources5 hours old, no [...]