Saturday, December 29, 2018

How to find out where a function is defined?

You could also do this in PHP itself:

$reflFunc = new ReflectionFunction('function_name');

print $reflFunc->getFileName() . ':' . $reflFunc->getStartLine();


For Class methods you can use $reflFunc = new ReflectionMethod($this, 'method_name');

No comments:

Post a Comment

Please Comment Here!

How to backup and download Database using PHP

< ?php $mysqlUserName = 'databaseusername' ; $mysqlPassword = 'databasepassword' ; $mysqlHostNa...