Let's say I have a class:
class test { public static function sayHi() { echo 'hi'; } } Call it by test::sayHi();
Can I define sayHi() outside of the class or perhaps get rid of the class altogether?
public static function sayHi() { echo 'hi'; } I only need this function to encapsulate code for a script. Maybe the answer is not a static method but a plain function def?
:D