I have a class like this:
class Utils{
public function hello()
{
return "<b>Hello World</b></br>";
}
}
Can I now do something directly like this in my page.php
:
require_once("classes/Utils.php");
echo hello();
Or must I do this:
$u = new Utils;
$u->hello();
even though the function contains no object properties that need to be instantiated?