Thursday, February 10, 2011

How to check whether an element exists using jQuery :: Aaron Russell

How to check whether an element exists using jQuery :: Aaron Russell

Sunday, February 6, 2011

isset(), empty(), is_null(), == null

Despite using PHP every day, I had confusion among the above function (empty() and isset() are language constructs)
After some experience with Zend framework, I now use
isset($var)
defined(CONST)
and
null === func()
i could have replaced that with
if (func())
but none of my functions return false, 0, '' in case of an error