{"absolute_url": "/TheAdamJanes/monday-friday-hurray/", "blog_post": false, "code": "\n\n\n\n',\n 'Tuesday', '
',\n 'Wednesday', '
',\n 'Thursday', '
',\n 'Friday', '
',\n 'Saturday', '
',\n 'Sunday', '
',\n);\n\nforeach($days as $day){\n if(date('l') === $day){\n echo \"Hurray, it's \", $day, \"!\\n\" ;\n continue;\n }\n echo $day, \"\\n\" ;\n}\n\n/*\n Monday\n Tuesday\n Wednesday\n Thursday\n Friday\n Hurray, it's Saturday!\n Sunday\n*/\n?>\n\n\n\n\n ", "created": "2010-11-05T22:29:14", "description": null, "description_rendered": "None", "embed_url": "https://snipt.net/embed/5f73a15ba005bb2fff95309e0c611918/", "full_absolute_url": "/TheAdamJanes/monday-friday-hurray/", "id": 20690, "lexer": "php", "line_count": 38, "log_entries": [], "meta": null, "modified": "2019-06-04T05:48:45.743340", "publish_date": null, "raw_url": "/raw/5f73a15ba005bb2fff95309e0c611918/", "resource_uri": "/api/public/snipt/20690/", "slug": "monday-friday-hurray", "stylized": "
 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n 9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38
<html>\n<body>\n\n\n<?php\n$days = array(\n  'Monday', '<br />',\n  'Tuesday', '<br />',\n  'Wednesday', '<br />',\n  'Thursday', '<br />',\n  'Friday', '<br />',\n  'Saturday', '<br />',\n  'Sunday', '<br />',\n);\n\nforeach($days as $day){\n  if(date('l') === $day){\n    echo "Hurray, it's ", $day, "!\\n" ;\n    continue;\n  }\n  echo $day, "\\n" ;\n}\n\n/*\n  Monday\n  Tuesday\n  Wednesday\n  Thursday\n  Friday\n  Hurray, it's Saturday!\n  Sunday\n*/\n?>\n\n\n\n</body>\n</html> \n
\n
", "tags": [{"absolute_url": "/public/tag/php/", "id": 9, "name": "php", "resource_uri": "/api/public/tag/9/", "snipts": "/api/public/snipt/?tag=9"}], "title": "Monday-Friday Hurray", "user": {"absolute_url": "/TheAdamJanes/", "email_md5": "9a4ad1661c4160047d8f43d942f30e4a", "id": 3913, "resource_uri": "/api/public/user/3913/", "snipts": "/api/public/snipt/?user=3913", "snipts_count": 2, "username": "TheAdamJanes"}}