Created
October 1, 2012 12:36
-
-
Save olleman42/3811407 to your computer and use it in GitHub Desktop.
Revisions
-
olleman42 created this gist
Oct 1, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ $data = json_decode(file_get_contents($restRequest)); foreach($data->DepartureBoard->Departure as $dep) { $bookval = (isset($dep->booking)) ? "mustBook" : NULL; $main[] = array($dep->time, $bookval); } print json_encode($main);