need to store values from foreach loop into array
- by Brad
Need to store values from foreach loop into an array, need help doing that. Code below does not work, only stores the last value, tried $items .= ..., but that is not doing the trick either, any help will be appreciated.
<?php
foreach($group_membership as $i => $username) {
$items = array($username);
}
print_r($items);
?>