[wp-hackers] Perhaps OT PHP Question

Sam Angove sam at rephrase.net
Tue May 29 02:54:40 GMT 2007


On 5/29/07, Matt Patenaude <MattPat at mattpat.net> wrote:
> You're right about what he's doing, but shouldn't that also happen in
> PHP 5? Unless he precedes $category in the loop declaration with an
> ampersand, shouldn't it also operate as a copy in PHP 5? Or am I
> missing something?

I think objects pass by reference by default. If $category were a
string (etc.) then the ampersand would be required.


More information about the wp-hackers mailing list