Total sum viewers for multiple users

with $all_channels[] i can print all_channels[‘data’][‘viewer_count’] from principal array ( [data] => [viewer_count], [user_id], etc…)

so in foreach i use $all_channels as $mydata for simplify on $mydata[‘viewer_count’]

i know, it’s dirty but i don’t know how clean it now