Re: Question on class syntax
| From: | Greg Beaver | Date: | Thu, 07 Aug 2003 18:34:47 +0000 |
| Subject: | Re: Question on class syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158712@lists.php.net to get a copy of this message | ||
Hi Luis,
http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php
Basically, if this is global code, you are calling the method cleanup of class htmlcleaner as if it were simply a function. Within a class, the $this variable is set, and calling htmlcleaner::cleanup() will work as if cleanup() were a method of your own class.
Greg
--
phpDocumentor
http://www.phpdoc.org
Luis Lebron wrote:
I am currently using a php class that uses the following syntax: $value= htmlcleaner::cleanup($value); What exactly is the :: used for? Is there a different syntax for :: ? thanks, Luis R. Lebron Project Manager Sigmatech, Inc