call a static method inside a class?

Viewed 134333

how do i call a static method from another method inside the same class?

$this->staticMethod();

or

$this::staticMethod();
5 Answers

call a static method inside a class

className::staticFunctionName

example

ClassName::staticMethod();

Related