updated examples

This commit is contained in:
Adam Shaw 2009-09-15 06:19:43 +00:00
parent 81c3cd9ee3
commit e3850a2e3e
8 changed files with 332 additions and 249 deletions

25
examples/json-events.php Normal file
View file

@ -0,0 +1,25 @@
<?php
$year = date('Y');
$month = date('m');
echo json_encode(array(
array(
'id' => 1,
'title' => "Event1",
'start' => "$year-$month-10",
'url' => "http://yahoo.com/"
),
array(
'id' => 2,
'title' => "Event2",
'start' => "$year-$month-20",
'end' => "$year-$month-22",
'url' => "http://yahoo.com/"
)
));
?>