📜  创建多维数组 php for 循环 - PHP 代码示例

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

代码示例1
$result = array();
foreach($members as $member) {
    $result[] = array(
        'firstname' => $member['firstname'],
        'last_name' => $member['last_name'],
        'job' => $member['job'],
        'desc' => $member['desc'],
        'image_url' => $member['image_url']
    );
}