You are here: Re: Some quick PHP questions « PHP Programming Language « IT news, forums, messages
Re: Some quick PHP questions

Posted by Phil Latio on 03/07/07 02:31

"Hendri Kurniawan" <ask-me@email.com> wrote in message
news:12us5qd6doi2n80@corp.supernews.com...
> 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.

That explains it. I think the tutorial was originally written for PHP4 or at
least the author wanted compatibility with PHP4.

Cheers

Phil

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация