foreach关联数组无法访问索引不正确

时间:2019-02-23 04:44:41

标签: php

foreach($ev as $evn)
{
    $events[]=array(
    "event"=>$evn['EVTID']  
    );


}

输出:

Array ( [0] => Array ( [event] => 3 ) [1] => Array ( [event] => 2 ) )

我可以访问3和2值

0 个答案:

没有答案