He wanted to compare 7 items
The Code:
function plural($amount,$singular='',$plural='s') { if (is_array($amount)) { $count = count($amount); } else { $count = intval($amount); } if ($count > 1) { return $plural; } else { return $singular; } } $myarray[] = 'hello'; $myarray[] = 'hello'; $myarray[] = 'hello'; $myarray[] = 'hello'; $myarray[] = 'hello'; $myarray[] = 'hello'; $myarray[] = 'hello'; echo 'He wanted to ' . plural($myarray, 'look at', 'compare') . ' ' . count($myarray) . ' item' . plural($myarray); echo PHP_EOL;