Re: OO in PHP5.0 - Referencing Object or not?!
| From: | l0t3k | Date: | Sun, 22 Aug 2004 19:46:08 +0000 |
| Subject: | Re: OO in PHP5.0 - Referencing Object or not?! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194429@lists.php.net to get a copy of this message | ||
Raffael,
object in PHP5 _are_ passed by reference. internally, objects are
handles unique to a request, so all youre doing is passing a handle around.
note, however, that simple variable access will _always_ be faster than
method calls. this is true in C as well as PHP, except in PHP the effects
are more noticeable since it is interpreted rather than compiled.
l0t3k