A couple of years ago, inspired by the mantra code is poetry, I started writing some code just for fun.

I’m going through my large collection of these silly scripts and will hopefully have them all compiled into a book you can buy within the next couple of weeks.

But first, I need more coffee, so I created this one this morning for when your cup of coffee is half empty.

<?php
  
$coffee_cup = "Half empty";

if ($coffee_cup === "Half empty") {
  echo "You need more coffee.";
} else {
  echo "You will need more coffee.";
}

?>

Leave a Reply

Your email address will not be published. Required fields are marked *