is it possible to use the indexes values inside of a foreach loop that is contained inside a partent for each. Look at the script below and observe that in the child for each I use echo'<div>' .$product['name'] . '</div>'; When $product[' name ']; belongs to the parent for each. is that possible? I am looking to use the index ['name '] in the child foreach().
foreach($tree as $product){
echo '<div>' . $product['name']. '</div>';
foreach($product['variery'] as $variety)
{
echo'<div>'. $variery['image'] . '</div>';
echo'<div>' .$product['name'] . '</div>';
} // end of child for each
} //end of parent for each