The :: operator is used to access a static class method. In other words you can use the class method without creating an instance of the class.
Alternatively you could have used the following less effcient syntax: $cleaner = new htmlcleaner(); $value = $cleaner->cleanup( $value ); Cheers, Rob. On Thu, 2003-08-07 at 14:25, 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 -- .---------------------------------------------. | Worlds of Carnage - http://www.wocmud.org | :---------------------------------------------: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul. | `---------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php