[ ["name"=>"zs","age"=>"10","sex"=>"nan"] , [ "名前"=>"ls","年齢"=>"11","性別"=>"ナン"], [""/> [ ["name"=>"zs","age"=>"10","sex"=>"nan"] , [ "名前"=>"ls","年齢"=>"11","性別"=>"ナン"], ["">
ホームページ >バックエンド開発 >PHPチュートリアル >多次元配列に関する関連質問
多次元配列に関する質問ですが、
<?php<br /><br /> $class = [<br /><br /> "group1" => [<br /> ["name"=>"zs","age"=>"10","sex"=>"nan"],<br /> ["name"=>"ls","age"=>"11","sex"=>"nan"],<br /> ["name"=>"ww","age"=>"12","sex"=>"nv"]<br /> ],<br /><br /> [<br /> ["name"=>"zs","age"=>"10","sex"=>"nan"],<br /> ["name"=>"ls","age"=>"11","sex"=>"nan"],<br /> ["name"=>"ww","age"=>"12","sex"=>"nv"]<br /> ],<br /><br /> [<br /> ["name"=>"zs","age"=>"10","sex"=>"nan"],<br /> ["name"=>"ls","age"=>"11","sex"=>"nan"],<br /> ["name"=>"ww","age"=>"12","sex"=>"nv"]<br /> ]<br /> ];<br /> echo '<pre class="brush:php;toolbar:false">';<br /> print_r( $class );<br /> echo '';