How to differentiate isset and empty

Answer Posted / vijay

isset is used to check whether the variable is set or
not ...
where as empty is used to check whether variable contains a
value or not

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you specify the "new line" character in single-quoted strings?

548


What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?

509


What is good average session duration?

547


Explain how you can update memcached when you make changes to php?

564


What type of headers that PHP supports?

622






Explain the types of functions for Splitting String?

568


How to create a session? How to set a value in session?

522


Is learning php easy?

528


What is data structure in php?

507


Is php good for career?

558


What is csrf validation?

549


What sized websites have you worked on in the past?

539


Does jwt protect against csrf?

489


What is the difference between runtime exception and compile time exception?

545


Write a program to find no of days between two dates in php?

521