So I have this class:

```
class MyClass {
    public static function printMessage($text) {
        echo $text;
    }
}

```

And I would like to use it in these ways:

```
MyClass::printMessage('test'); // test
printMessage('test'); // test

```

So `printMessage` will work as a method and also as a function. Is something like that possible with PHP? (Something like autoload for classes) I cannot find a good solution or even answer - `no`. It is not necessary for me, I'm just curious so I don't need to write same function structure twice. I know I can use code like `public static function printMessage($text) { return printMessage($text); }`, but it's not what I'm looking for.