Does empty check for null?



Does empty check for null?..

Answer / Bipin Bihari Chauhan

No, the empty keyword in PHP only checks for an empty string (""), an array with no elements ([]), or a variable that has not been set. To check for null, use the is_null() function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What do the initials of php stand for?

1 Answers  


A process is identified by a unique___

1 Answers  


What are some new features introduced in php7?

1 Answers  


Do you know what is the use of rand() in php?

1 Answers  


How are variables declared in php?

1 Answers  


Where to put php files in apache server?

1 Answers  


What is meant by content management system?

3 Answers   Global Logic, IBEE, TCS, Toyota,


What is fetch array in php?

1 Answers  


Why is php so popular?

1 Answers  


How to stop the execution of php script?

1 Answers  


What is $this in php?

1 Answers  


What is the difference between super () and this ()?

1 Answers  


Categories