Answers for "store value in array from foreach loop"

0

store value in array from foreach loop

$items = array();
foreach($group_membership as $username) {
 $items[] = $username;
}

print_r($items);
Posted by: Guest on May-04-2021

Code answers related to "store value in array from foreach loop"

Browse Popular Code Answers by Language