Jump to content

difference between Bar & &Bar


straygrey

Recommended Posts

That syntax should not be used.  Back in the PHP4 days, the way objects were passed required the use of & in many cases, but in PHP5 all objects are passed by reference.  In PHP there aren't really pointers, but the general idea is the same -- making a copy of a data structure vs. using the actual data structure.  Objects are automatically passed by reference now.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.