-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 に答える