top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In Php What is the difference between null and empty?

+2 votes
299 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.

...