So, I am looking for how to get the name of the caller method. I have never seen him, and I do not know if he exists.
Example:
<?php
class father {
public function db_select(){
echo method that call me;
}
}
class plugin extends father {
public function select_plugin(){
$query = $this->db_select();
}
}
?>
All I want to do is write the name of the method that calls the method db_select()inside db_select().
source
share