echo Rの部分に[0~1]['Productfiles'][0~1][file]をループで取り出したいです。 <?php debug($product); ?> <?php foreach ($products as $key => $val2): ?> <?php //debug($val2); ?> <?php foreach ($val2 as $key2 => $val3): ?> <?php //debug($val3); ?> <?php echo R ; ?> <?php endforeach; ?> (int) 0 => array( 'Product' => array( 'id' => '1', 'user_id' => '12' ), 'Productfiles' => array( (int) 0 => array( 'id' => '1', 'product_id' => '1', 'file' => 'https://user.zip' ), (int) 1 => array( 'id' => '2', 'product_id' => '1', 'file' => 'https://controller.zip' ) ),