はじめまして!
以下の配列において、[comment]内の[0]~[1]の配列をforeachを用いて出力させる場合はどのようなコードにすればよいでしょうか?
是非ともご教授のほどよろしくお願い申し上げます。
PHP
1Array 2( 3 [User] => Array 4 ( 5 [id] => 121 6 [name] => Gwoo the Kungwoo 7 [created] => 2007-05-01 10:31:01 8 ) 9 [Comment] => Array 10 ( 11 [0] => Array 12 ( 13 [id] => 123 14 [user_id] => 121 15 [title] => On Gwoo the Kungwoo 16 [body] => The Kungwooness is not so Gwooish 17 [created] => 2006-05-01 10:31:01 18 ) 19 [1] => Array 20 ( 21 [id] => 124 22 [user_id] => 121 23 [title] => More on Gwoo 24 [body] => But what of the ‘Nut? 25 [created] => 2006-05-01 10:41:01 26 ) 27 ) 28)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/07/26 06:45