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