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 trialPutra Muzhafar
1,607 PointsConfused 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
Oliver Hough
6,153 PointsI 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.