Reply to Re: Utter newbie - what is this: "->"? Can't search it. . .

Your name:

Reply:


Posted by Tony Marston on 09/09/06 08:22

"Sandman" <mr@sandman.net> wrote in message
news:mr-B2E0A9.08561209092006@individual.net...
> In article <1157783631.808897.174690@b28g2000cwb.googlegroups.com>,
> Webslinger2300@hotmail.com wrote:
>
>> Hi There -
>>
>> Am an utter newbie. Have not been able to find out what this is. (->)
>> I've been to manuals and forums and the search engines just strip it
>> out, even with quotes.
>>
>> I've found something similar: "=>", used in arrays. But this has a
>> minus sign, not an equals sign. I've looked at lists of operators, and
>> don't see it.
>>
>> I'l be grateful to anyone who can help me figure this out.
>>
>> Thanks,
>>
>> Lee
>
> In objkect oriented PHP, you refer to the child objects in a class
> object as such:
>
> $foo = new bar();
> print $foo->monkey;
>
> "monkey" is defined as a child object in bar();

Incorrect. "monkey" is not an object, it is a variable inside the bar class.

$foo is an object handle while
$foo->monkey is a class (object) variable (property)
$foo->monkey() is a class (object) function (method)

If you use the wrong terminology it can be very confusing.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

[Back to original 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация