get all venue categories

Get all the venue categories available on foursquare.

$categories_url=\'https:api.foursquare.comv2venuescategories?oauth_token=\' . $access_token . \'&v=\' . $date;
$response = file_get_contents($categories_url);
$categories = json_decode($response, true); 
$categories_response=$categories[\'response\'];
$categories_array = $categories_response[\'categories\'];

for ($a=0;$a