Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Object-Oriented PHP Basics Building the Recipe Magic Constants

John Silverstein
John Silverstein
6,290 Points

why would I need these? thats whats debug is for no?

what real life scenarions will require me to display the methods and properties of a class? I can just look at the class file

It's a good question, if someone can answer this it would be helpful.

1 Answer

Perhaps if you were trying to make some user friendly documentation for your code that doesn't require the user to inspect the files to see the class names?