Skip to content

Instantly share code, notes, and snippets.

@coryetzkorn
Last active December 26, 2015 04:49
Show Gist options
  • Save coryetzkorn/7095500 to your computer and use it in GitHub Desktop.
Save coryetzkorn/7095500 to your computer and use it in GitHub Desktop.
PHP Store Hours - HTML Output
$open_now = "<h3>Yes, we're open! Today's hours are %open% until %closed%.</h3>";
$closed_now = "<h3>Sorry, we're closed. Today's hours are %open% until %closed%.";
$closed_all_day = "<h3>Sorry, we're closed on %day%.</h3>";
$exception = "<h3>Sorry, we're closed for %exception%.</h3>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment