Answers for "php add something to an array from a foreach"

PHP
1

array push foreach php

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

print_r($items);
Posted by: Guest on September-02-2020

Code answers related to "php add something to an array from a foreach"

Browse Popular Code Answers by Language