04-23-2009, 12:23 AM
|
#12 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
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;
}
|
|
|
|