Re: What is -> ??

From: Date: Tue, 27 Jun 2000 18:58:54 +0000
Subject: Re: What is -> ??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3404@lists.php.net to get a copy of this message
It's how you access methods and variables in a class. i.e. <? class foo { var $myvar; function bar () { echo "Hi there"; } } $test = new foo; $test->bar(); $test->myvar = 12; ?> Ryan On Tue, Jun 27, 2000 at 07:50:15PM +0100, Adam Charnock wrote: > Hi. I have done lots of programming in Perl, but I have never seen the "->" > thing that keeps appearing here-there-and everywhere in PHP. Could someone > tell me what it does? > > Thanks > Adam > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net ---end quoted text---

« previous php.general (#3404) next »