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

Wrapping Up The Project - Objects Code Challenge.

I am on part 5 of the code challenge and I've run in to a problem.

Here is my code that I came up with.

<?php
  require_once('class.palprimechecker.php');
  $checker = new PalprimeChecker();
  $checker -> number = 17;
  echo "The number " . $checker->number . " ";
  if(!$checker -> isPalprime()) {
     echo "is not a Palprime.";
  } else {
     echo "is a Palprime.";
  }
?>

The error that I am getting is: Bummer! It seems like you are calling the right method and you have the removed various placeholder characters (##|()), but something in the output is not quite right. Please double-check the preview.

I cant see whats wrong with the code unless im over looking a really basic mistake.

Thanks for your help. Bremer.

Jonathan Ullberg
Jonathan Ullberg
8,900 Points

You need to uncapitalize the words "Palprime" on both echo statements.

Thank you very much.

1 Answer