How to differentiate isset and empty

Answer Posted / rahul shelar

isset is used for checking whether variable is set or not
and empty checks whether it is empty

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the '.frm' file extension? What do thes file contain?

513


Name some of the popular frameworks in php.

555


What is php ci?

556


How come the code works, but doesn’t for two-dimensional array of mine?

603


How to copy a file?

565






Explain how can we increase the execution time of a php script?

510


Why shouldn't I use mysql_* functions in php?

598


Explain the difference between array_merge() and array_combine()?

535


How to test if a variable is an array?

564


Write a program to display reverse of any number?

512


how to track no of users logged in?

602


What is the role of php?

509


What are interfaces in php?

521


Is php a case sensitive language?

615


When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

555