This is a discussion on Re: Question on class syntax within the PHP General forums, part of the PHP Programming Forums category; Hi Luis, http://www.php.net/manual/en/keyword...ekudotayim.php Basically, if this is global code, you are calling ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi Luis,
http://www.php.net/manual/en/keyword...ekudotayim.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 > |