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

This task has two parts. First: PalprimeChecker objects have a property called number; assign that property on your $che

I dont know what to do

palprimes.php
<?php

include("class.palprimechecker.php");
$checker = new PalprimeChecker;
$checker->Number(17);



echo "The number " . " " . $checker->Number;
echo "(is|is not)";
echo " a palprime.";

?>

1 Answer

Matthew Bilz
Matthew Bilz
15,736 Points

I believe you'd want to use:

$checker->number = 17;

echo "The number " . $checker->number . " ";
echo "(is|is not)";
echo " a palprime.";