top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

In Php What is the difference between null and empty?

+2 votes
152 views
In Php What is the difference between null and empty?
posted Sep 29, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Null is a special placeholder value in the programming language that literally means "nothing". It's not 0, it's not an empty string, it's nothing. There is no value in memory being pointed to. An empty string, on the other hand, is still a string object, just a very short one.

answer Oct 1, 2014 by Vrije Mani Upadhyay
Similar Questions
+1 vote

Also, tell me the difference between them.I know about empty() function(It will used to check whether the variable is empty or not).I wonder to know what's the main use for is_null() function.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...