print "There " . ($count == 1 ? " is " : " are " ) . " $count piece" . ($count == 1 ? "s" : "" ) . " of pizza left.\n";
Is this possible? Or do I have to go with an if, an else, and two print statements?In reply to one-line conditional print? by MrSnrub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |