null-test

Is if(obj && obj != nil) correct and necessary?

Two parts to this question 1) Is this understanding of what's going on correct? "if (obj)" is testing to see if the pointer is not 0x0, aka set to an integer memory address "if (obj != nil)" is comparing the memory address of the object to the memory address of the universal nil object 2) So in a situation where I don't know if a varia...

Empty PHP variables

Is there a better way besides isset() or empty() to test for an empty variable? ...