note 11480 added to Operators
| From: | basica at k-designs dot com dot sg | Date: | Thu, 22 Feb 2001 09:46:12 +0000 |
| Subject: | note 11480 added to Operators | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11400@lists.php.net to get a copy of this message | ||
assuming you have a class:
class b {
//methods and prop here
}
This will be the most common way to call the methods:
$obj = new b;
$obj->method();
Here is a more direct way
b::method();
Like someone mentioned I was also not aware that php supports the :: operator.
BasicA
http://www.php.net/manual/en/language.operators.php