<?php
function song($bNumba) {
for($i = $bNumba; $i >= 0; $i--) {
$k = $i-1;
//used ternary operator 
$j = ($i > 0) ? ($i > 1) ? $i." Bottles" : $i." Bottle" : "No More Bottles";
$s = ($i == 2) ? " Bottle":" Bottles";
echo $j." Of Beer On The Wall, ".$j." Of Beer. ".(($i > 0) ? "Take One Down And Pass It Around, ".(($k > 0) ? $k.$s:"No More".$s)." Of Beer On The Wall \n" : "Go To The Store And Buy Some More, 99 Bottles Of Beer On The Wall");
}
}
song(99);
?>