Answer the question
In order to leave comments, you need to log in
Is it possible to get just the method name?
class DataController
{
public function name()
{
$method = __METHOD__;
echo "МЕТОД = $method<br>";
Controller\DataController::name
and you just need name If you don’t clean it with a regular routine, can you get a ready-made method name right away?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question