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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to