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 (Retired) Properties and Methods Mid-Course Challenge

What am i doing wrong :O

I created the getInfo() function and make it return the sentence it was required but still it appears to be wrong.

Please provide us with your code, that way we can see what the issue is.

1 Answer

Hi Blerta,

I know the video and challenge you're talking about..

In your return line, just mention all the object properties like this: $this->common_name, $this->species, and so on.

They don't seem to really care about what particular sentence you make with them, just that you mention all the object properties in the return line. I just used them with dot-operators between them.

Take care!

-- Cal