我有 XML 喜欢:
[domain] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[name] => AlOkJainist
[com] => y
[comscore] => 805
[net] => y
[netscore] => 779
[tv] => y
[tvscore] => 753
[cc] => y
[ccscore] => 728
)
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[name] => BargainsdiAlOg
[com] => y
[comscore] => 805
[net] => y
[netscore] => 779
[tv] => y
[tvscore] => 753
[cc] => y
[ccscore] => 728
)
)
[2] => SimpleXMLElement Object
(
[@attributes] => Array
(
[name] => AlOkayJain
[com] => y
[comscore] => 792
[net] => y
[netscore] => 766
[tv] => y
[tvscore] => 740
[cc] => y
[ccscore] => 715
)
)
)
)
我想创建 PHP 数组,如:
array(
'AlOkJainist' => array([com] => y, [net] => y),
'BargainsdiAlOg' => array([com] => y, [net] => y),
'AlOkayJain' => array([com] => y, [net] => y),
);
请帮帮我,我试过但没有成功。