📜  从 foreach 循环将值存储在数组中 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:25.393000             🧑  作者: Mango

代码示例1
$items = array();
foreach($group_membership as $username) {
 $items[] = $username;
}

print_r($items);