php for and foreach array push 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);