Posted by Thomas Mlynarczyk on 11/19/05 00:01
Also sprach Meião:
>> class myLib { public static function myFunc() { /* do stuff */ } }
>> class myLib { public function myFunc() { /* do stuff */ } }
> in this first case the function myFunc() will be available without
> instantiation. then you can call myLib::myFunc()
> second case you can't
> In PHP 4 it didn't matter, you could always (?) call a function
> staticly
So it's just that PHP5 is more strict about certain things.
Thanks,
Thomas
Navigation:
[Reply to this message]
|