PHP/Object
From DocForge
< PHP(Difference between revisions)
| Line 2: | Line 2: | ||
By default, objects in PHP are assigned and passed by reference as of version 5 of the language. This means that two variables both assigned to the same object are acting on the exact same object and not copies. | By default, objects in PHP are assigned and passed by reference as of version 5 of the language. This means that two variables both assigned to the same object are acting on the exact same object and not copies. | ||
| - | |||
| - | |||
Current revision as of 14:15, 21 July 2010
PHP objects are instances of classes defined by the developer or the PHP runtime environment.
By default, objects in PHP are assigned and passed by reference as of version 5 of the language. This means that two variables both assigned to the same object are acting on the exact same object and not copies.

