Re: I'm in trouble, please help me.
| From: | Hannes Magnusson | Date: | Sat, 24 Nov 2007 10:50:32 +0000 |
| Subject: | Re: I'm in trouble, please help me. | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-559@lists.php.net to get a copy of this message | ||
On Nov 23, 2007 6:49 PM, jose ramos <mikeramos323@gmail.com> wrote:
> How do you read this A::foo();?
<?php
class A {
public static function foo() {
echo "Hello. I am a static function in the class 'A'\n";
}
}
A::foo();
?>
How its read out loud?.. "Calling the static foo() method in the class A"?
Honestly never thought about it, check the docs
http://docs.php.net/language.oop5.static :)
-Hannes