faqts : Computers : Programming : Languages : PHP : kms : General : Variables

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 2 people (50%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

If an object is passed to a func by ref ie 'fun(&$instance)' , is only the pointer to the instance passed as in C++, thus saving large data transfers?

Jul 16th, 2001 11:49
Rich Cavanaugh, Kris Green,


You may want to look at http://php.net/manual/en/language.references.php
Basically, no it doesn't copy the object. The PHP manual says it's not 
like a C pointer but the end result is similar.