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!

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


Confused on PHP objects

Hi guys, I'm not sure where I'm lost at this stage but if anyone would be kind enough to help me out here, that would be great. I must have forgotten a few things but I couldn't recall what is needed in this code exercise.


1 Answer

I think your missing brackets after instantiating your object

$checker = new PalprimeChecker();

also you will need to set the 'number' property to 17

$checker->number = 17;

I have only recently started to learn PHP but I think that should get you on the right track.