From: "Luis Lebron" <[EMAIL PROTECTED]>
> 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 :: ?

You're calling the cleanup() method of the "htmlcleaner" class.

You could also have:

$ob = new htmlcleaner;
$value = $ob->cleanup($value);

You can use the first method without having to actually make a new object.
Whether that's better or not depends upon your application. It basically
turns your "object" into a function repository.

---John Holmes...


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

Reply via email to