Omzy Posted January 3, 2009 Share Posted January 3, 2009 Why does this not work: $subcats=array( 'wedding-cakes'=>array('cakes', 'Wedding Cakes'), 'birthday-cakes'=>array('cakes', 'Birthday Cakes') ); $cat=array( 'cakes'=>array('Cakes', 'Wedding Cakes, Birthday Cakes') ); foreach($subcats as $index1 => $value1) if($subcats[$index1][0] == $cat) { //echo $subcats[$index1][1]; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.