Category Archives: PHP

What is the difference between a session and cookies?

Difference between cookies and session is : Cookies stores the information on client browser and session stores the information on server. session and cookies are used to store the information.

empty() function PHP

empty() function determines whether given variable is empty and also used for checking variable is set or not. Variable is said to empty if it is not set or value is false. empty values can be : 0 “” or “0” 0.0 (0 float value) FALSE empty array() NULL Reference : http://php.net/manual/en/function.empty.php