If I have a huge project and I realize that somewhere in the code, a function is being called, but I do not know which place it is, is there any way to find out?
Example:
#index.php
// nada aqui nesse script
#config.php
$config['database'] = config('database');
#view.php
$base_url = config('base_name');
I would like something like:
descubra_onde_a_funcao_foi_chamada('config');
And so something like:
array(
0 => array( 'file' => 'config.php', 'line' => 10),
1 => array('file' => 'view.php', 'line' => 15)
);
How can I do something like this in PHP, just as I demonstrated in the example function?