-2
 Array
(
[data] => Array
    (
        [0] => Array
            (
                [name] => Sujay John
                [id] => 765972231
            )

        [1] => Array
            (
                [name] => Bhawesh Kumar
                [id] => 820284831
            )

        [2] => Array
            (
                [name] => Deepak Sharma
                [id] => 1054741730
            )

        [3] => Array
            (
                [name] => Raman Steta
                [id] => 1093844232
            )

        [4] => Array
            (
                [name] => Rohit Sharma
                [id] => 1101853912
            )

        [5] => Array
            (
                [name] => Rakesh Sharma
                [id] => 1128223845
            )

我想要这样的输出:

name= Sujay John
id= 765972231

[name] => Deepak Sharma
[id] => 1054741730

像那样......只有用户的名称和ID。

4

1 回答 1

0
foreach($level01['data'] as $dataArray){
   echo 'name='.$dataArray['name'].' id='.$dataArray['id'].;
}

希望对您有所帮助,否则我的问题错了...

于 2012-05-23T04:45:37.907 回答