> -----Original Message-----
> From: Ross Clutterbuck [mailto:[EMAIL PROTECTED]
> Sent: 05 November 2008 10:08
> To: wdvltalk@lists.wdvl.com
> Subject: Re: [wdvltalk] PHP and HTML output of the same page render
> differently in IE
> 
> Matt:
> 
> I'm always expanding my PHP knowledge - explain to me what the -> does.
> 
> MOU

'->' is the way you access methods and properties in a class/object... For 
example:
 $my_var = $my_class->getMyVar();

Or

$my_class->my_string = 'foo';

Or, inside the class, you can use the $this keyword e.g.

$this->my_var = $this->getMyVar();

There is also the scope resolution operator :: which allows access to static 
and constant members of a class (which causes an error if the method called 
uses $this)

This is a fairly simple explanation (and it took me a while to get it straight 
in my head) so maybe some reading at http://uk.php.net/class would be a good 
idea

HTH a bit

Dan


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
       Send Your Posts To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to