View Single Post
Old 04-23-2009, 12:23 AM   #12 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Thanks Salathe for explaining it to me in layman's terms.

I'll look into the object literal, that doesn't look like it's something that is available in PHP right?
Sounds pretty cool though, almost like a shortcut to using objects...

On your last explanation:

++retval[…]


Would that be considered a unary operator?


Also, when evaluating conditions like this:


Code:
if(!retval.total)
    {
        return(retval);
    }
Why must one return (retval)? Could we just do "nothing"?

Like this:


Code:
if(!retval.total)
    {
        return false;
    }
allworknoplay is offline  
Reply With Quote