Using relection in OOP means that you can examine your own code at run time.
To get information about this method, you can use the ReflectionFunction class.
Now you can use this new object, $method , to find the name of the method it represents, the lines the method spans in code, what happens when you pass data to the method, what static properties the method has, and more.
Trending Tutorials