Echo the contents of an array print_r($my_array); //or print_r($my_array[0]); //or echo json_encode($my_array); If you want to return it, not echo it print_r($my_array, true);