mercredi 31 mai 2017

Laravel - Php, display decoded JSON

I have decoded a JSON file and got:

array('data' => array('status' => 'ok', 'listings' => array(array('title' => 'Beauty and the Beast', 'times' => array('11:30')), array('title' => 'King Arthur - Legend of the Sword', 'times' => array('14:30', '20:45')), array('title' => 'Sing', 'times' => array('10:30')), array('title' => 'A Dog\'s Purpose', 'times' => array('10:20')), array('title' => 'The Boss Baby', 'times' => array('10:15', '12:45')), array('title' => 'Guardians of the Galaxy 2', 'times' => array('15:30', '17:30')), array('title' => 'Baywatch', 'times' => array('12:50', '15:50', '18:40', '20:30', '21:30')), array('title' => 'Pirates of the Caribbean: Salazar\'s Revenge', 'times' => array('11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00')), array('title' => 'Diary Of A Wimpy Kid - The Long Haul', 'times' => array('10:45', '13:10', '15:30', '17:50')), array('title' => 'Alien - Covenant', 'times' => array('18:30', '21:20')), array('title' => 'Peppa Pig: My First Cinema Experience', 'times' => array('10:00')))), 'http_response_header' => array('HTTP/1.1 200 OK', 'Date: Wed, 31 May 2017 10:15:06 GMT', 'Server: Cowboy', 'X-Powered-By: Express', 'Access-Control-Allow-Origin: *', 'Access-Control-Allow-Methods: GET, POST', 'Access-Control-Allow-Headers: X-Requested-With, Content-Type', 'Content-Type: application/json; charset=utf-8', 'Content-Length: 787', 'Etag: W/"313-zKqUamxe+yaLdbSsP4oLzQ"', 'Via: 1.1 vegur', 'Connection: close')))

But how do I output that in a page using laravel controller? Of course I just want the actual title and times associated with it?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qA60FM
via IFTTT

Aucun commentaire:

Enregistrer un commentaire