I'm getting the following results from an API call and putting it into a variable called listid:
Array ( [total] => 1 [data] => Array ( [0] => Array ( [id] => 4960b0d958 [web_id] => 182605 [name] => School Soccer News & Notifications [date_created] => 2015-08-03 19:34:30 [email_type_option] => [use_awesomebar] => 1 [default_from_name] => website.com Soccer [default_from_email] => [email protected] [default_subject] => [default_language] => en [list_rating] => 0 [subscribe_url_short] => http://eepurl.com/bu3op1 [subscribe_url_long] => http://BoostMyTeam.us11.list-manage.com/subscribe?u=sadf&id=4960b0d958 [beamer_address] => [email protected] [visibility] => pub [stats] => Array ( [member_count] => 1 [unsubscribe_count] => 0 [cleaned_count] => 0 [member_count_since_send] => 1 [unsubscribe_count_since_send] => 0 [cleaned_count_since_send] => 0 [campaign_count] => 0 [grouping_count] => 0 [group_count] => 0 [merge_var_count] => 2 [avg_sub_rate] => 0 [avg_unsub_rate] => 0 [target_sub_rate] => 0 [open_rate] => 0 [click_rate] => 0 [date_last_campaign] => ) [modules] => Array ( ) ) ) [errors] => Array ( ) ) I'm trying to get the ID value and I've tried the following but it doesn't return a value:
echo $listid['data']['id']; How can I get the ID?
$listid['data'][0]['id']?