Posted by Hendri Kurniawan on 03/07/07 01:37
Iván Sánchez Ortega wrote:
> Phil Latio wrote:
>> Secondly, I've been reading a tutorial and noticed the use of an "&" in
>> front of the word "new" when instantiating a new object. See example
>> below, I just wondered what is it's significance? The code was purely a
>> snippet. $textField1 = &new inputTextObject("blah", "blah", "blah");
>
> The ampersand sign ("&") is the reference operator; it has no use at all
> when creating new instances.
>
No use when creating new instance under PHP5,
Under PHP4 it makes quite a difference.
[Back to original message]
|