How to get individual element of an array php?

0 like 0 dislike
3 views
Help please
There is a function in which the arrays(set by plugin)
arrays
$icons['avatar-upload'] = array( 'content'=> '', 'atts' => array( 'title' => __('Avatar upload','wp-recall'), 'url' => '#' ) ); if(get_user_meta($user_ID,'rcl_avatar',1)){ $icons['avatar-delete'] = array( 'atts' => array( 'title' => __('Delete avatar','wp-recall'), 'href' => wp_nonce_url( rcl_format_url(get_author_posts_url($user_ID)).'rcl-action=delete_avatar', $user_ID ) ) ); } return $icons;
by | 3 views

1 Answer

0 like 0 dislike
All elementary simple.. as it turned out)
First: the bust was supposed to be of this type foreach($icons as $icon_id => $icon )
Second: next, have to go check something like this if($icon_id['avatar-upload'])
Good luck to everyone
by
110,608 questions
257,186 answers
0 comments
33,863 users