|
Answer» What is NULL VALUE in PHP define with example? In PHP NULL is a special data TYPE which have only one value that is NULL. NULL data type is a variable that have no value assigned. When we create a variable without assigning a value to it. Then it will assigned a value of NULL automatically. We can also do by setting value as Null. NULL is no a case SENSITIVE in PHP and below are the method to declared a NULL data type:-
(i)Case Sensitive $var = NULL; or $var = null;
(ii)null values other facts use decrement $x = null; --$x; //$x is NULL no decrement $x--; //$x is STILL null $x-=1 //$ now it is -1
(iii)Use increment $x = null; ++$x; //$x is 1
|