php append array in foreach code example
Example: array push foreach php
$items = array();
foreach($group_membership as $username) {
$items[] = $username;
}
print_r($items);
$items = array();
foreach($group_membership as $username) {
$items[] = $username;
}
print_r($items);