| 
	
 | 
 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
 
  
Navigation:
[Reply to this message] 
 |