Where function is declared, Get file name and line no in PHP

Sometimes when developing in PHP in large applications searching for function (without IDE) in all the files becomes boring. So I was looking for quick solution of this. By searching few minutes I found great solution.

There is a built-in PHP class ReflectionFunction

Example of ReflectionFunction Class

Here in first line selected is function name I want to search where it’s declared.

Shyam Makwana has written 21 articles

I am PHP developer with passion of exploring IT world for new technologies. I do projects in WordPress, Joomla, Magento, Drupal, Open Cart, Code Igniter, MVC and CorePHP. Checkout my about.me profile here http://about.me/shyammakwana to know more about me.