<?php $number = 12345; $last = substr($number, -1); echo in_array($last, array(1, 3, 5, 7, 9)) ? "odd" : "even";
You have javascript disabled. You will not be able to edit any code.