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 sign to start variables in PHP?

586


When to use inquire vs enquire?

528


How can you execute php script from the command line?

543


Can I use php in html?

553


What are headers in php?

522






What is php artisan tinker?

505


Explain Whitespace Characters?

575


What are the features of php 7?

499


How to reset/destroy a cookie?

569


What Is a Persistent Cookie?

605


How to access a specific character in a string using php?

506


How to check your php installation?

499


What is use of header() function in php?

543


How to remove white spaces from the beginning and/or the end of a string in php?

533


Write down the code for saving an uploaded file in PHP.

587