Re: loading classes and efficiency

From: Date: Sat, 13 Sep 2003 17:08:49 +0000
Subject: Re: loading classes and efficiency
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-162504@lists.php.net to get a copy of this message
* Thus wrote daniel@electroteque.org (daniel@electroteque.org): > > function &create_object() { > > [..] > > } > > > > $some_object =& create_object('some_object'); > > This line should be: $some_object = create_object('some_object'); The use of & at calltime is deprecated and should only be used in the declaration of the functions: function &func_name(&$ref_var) { } Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#162504) next »