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

How to call php functions inside smarty template directly

PHP / SQL Security – The Big Picture

Top 50 Web Hacking Techniques