From 19591dc48ea2dc4973c2a8031c7102a1aea51713 Mon Sep 17 00:00:00 2001 From: chelejuan Date: Thu, 18 Jan 2018 12:28:27 +0100 Subject: [PATCH] Update fetch_tickets.php --- PHP/fetch_tickets.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/PHP/fetch_tickets.php b/PHP/fetch_tickets.php index ce3a52e..1a84ec3 100644 --- a/PHP/fetch_tickets.php +++ b/PHP/fetch_tickets.php @@ -26,6 +26,18 @@ echo $headers."\n"; echo "Response Body \n"; echo "$response \n"; + /* + // More visual. + $response_data = json_decode($response); + foreach ($response_data as $key => $value) { + + echo "
";
+     print_r($value);
+     echo "
"; + + } + + */ } else { if($info['http_code'] == 404) { echo "Error, Please check the end point \n"; @@ -38,4 +50,4 @@ curl_close($ch); -?> \ No newline at end of file +?>