Skip to content

Instantly share code, notes, and snippets.

<?php
$days = 30;
if (in_array($_GET['monthindex'], array(0,2,4,6,7,9,11))) {
$days = 31;
} else if (in_array($_GET['monthindex'], array(1))) {
$days = 28;
}
?>
{
@gnardecky
gnardecky / kitchen_data_months.php
Last active November 15, 2016 22:07
PHP file used to return a JSON with fake data representing 12 months.
{
"id":"months",
"width":"100%",
"x":"0%",
"y":"40%",
"height":"30%",
"type":"bar",
"plotarea":{
"margin-top":30,
"margin-right":30,