crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

What is NULL Value in PHP define with example?
Question Posted on 09 Mar 2021Home >> PHP >> PHP Questions >> What is NULL Value in PHP define with example?

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
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

difference between echo and print

method to past value from one page to another in php

differenc between mysql_connect and mysql_pconnect

What is htaccess file

Code to combine or concatenate two variables in php






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap