<?php class Even { public $number; public function searchNumber() { if ($this->number % 2) { echo $this->number . " - not Even"; } else echo $this->number . " - Even"; } }