I don't want to use new in my calling php document. I just want to call static method
.
For example my class is:
class MergeCaching{
public static function writeList(){
$write = new MergeCaching(); // I want to use new here
$write->getListFromRu();
}
public function getListFromRu(){
print_r('Example');
}
}
My calling php document like this:
MergeCaching::writeList();
It works but can I use like this?