Thursday, February 10, 2011
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
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
Subscribe to:
Posts (Atom)