PHP Build a Basic PHP Website (2018) Adding a Basic Form Objects

PalprimeChecker

Why it Bummer!

palprimes.php
<?php
include('class.palprimechecker.php');
$checker = new PalprimeCheker;





echo "The number ## ";
echo "(is|is not)";
echo " a palprime.";

?>

1 Answer

Simon Coates
Simon Coates
28,677 Points

You made a couple mistakes. Try something like

<?php
include('class.palprimechecker.php');
$checker = new PalprimeChecker();

thanks