What is the difference between isset() and !empty() in php

The difference between isset() and !empty() is that unlike !empty()isset() will return TRUE even if the variable is set to an empty string or zero. In order to decide which one to use, consider whether'' or 0 are valid and expected values for your variable.

Comments

Popular posts from this blog

PHP / SQL Security – The Big Picture

PHP / SQL Security – SQL Commands and Non-String Variables

Top 50 Web Hacking Techniques