阅读背景:

如何从php中的动态变量创建关联数组?

来源:互联网 

I have this code:

我有这个代码:

$people=array();
$i=0;
foreach ($xml->xpath('//person') as $character) {
if ($character->status!="Active"){

  $people[$i]['fullname']=(string)$character->fullname;
  $people[$i]['status']=(string)$character->status;
  $i++;

    }
}
$people=array();



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: