Need to store values from foreach loop into an array, need help doing that.
The code below does not work, only stores the last value, tried $items .= ...,
$items .= ...,
Just to save you too much typos:
foreach($group_membership as $username){ $username->items = array(additional array to add); } print_r($group_membership);