ホームページ >バックエンド開発 >PHPチュートリアル >php はこのデータをどのように読み取るのでしょうか? ?
以下の内容は print_r からのデータです
[listing] => Array() 内のデータをループ内で読み出すには? ?
配列
(
[ステータス] => 1
[情報] =>
[データ] => 配列
( [user_info] => 配列
(
) [uid] => ; ] => [card_number] =>[GroupId] => /
[マスター] => 0
[説明] =>
[ユーザー] => ジジデル
[user_email] => service@zijidelu.org
[合計サイズ] => 0
[ソリューション名] => 旗舰套餐
[ftp_DLBandwidth] => 0
[ftp_ULBandwidth] => 0
[ftp_QuotaSize] => 0
[ftp_QuotaFiles] => 0
[ftp_count] => 0
)
[1] => 配列
(
[id] => 2
[uid] => 1 WiSTbUcfWUqdBiovKOYMEDeqPuOPMezh
[日付行] => 1371426777
[日付行_更新] =&g t; 1371426777
[ステータス] => 1
[並べ替え] => [ディレクトリ] => /home/xxx_com-20130617-hQP/
[マスター] => 1
[説明] =>
[ユーザー] => ジジデル
[user_email] => service@zijidelu.org
[合計サイズ] => 0
[ソリューション名] => 旗舰套餐
[ftp_DLBandwidth] => 0
[ftp_ULBandwidth] => 0
[ftp_QuotaSize] => 0
[ftp_QuotaFiles] => 0
[ftp_count] => 0
)
[2] => array
(
[id] => 3
[uid] => 1 WiSTbUcfWUqdBiovKOYMEDeqPuOPMezh
[日付行] => 1371426777
[日付行_更新] =&gて; 1371426777
[ステータス] => 1
[並べ替え] => 2000
[dir] => /home/xxx_com-20130617-hQP/
[マスター] => 1
[説明] =>
[ユーザー] => ジジデル
[user_email] => service@zijidelu.org
[合計サイズ] => 0
[ソリューション名] => 旗舰套餐
[ftp_DLBandwidth] => 0
[ftp_ULBandwidth] => 0
[ftp_QuotaSize] => 0
[ftp_QuotaFiles] => 0
[ftp_count] => 0
)
)
[合計実行時間] => 9.818 s
)
)
foreach($arr['data']['listing'] as $vl){ foreach($vl as $k=>$v) echo $k.'=>'.$v.'<br>';}