Traversing a 2D Array - Need Help!

Discussion in 'PHP' started by RogerDodgr, Jun 14, 2009.

  1. #1
    Resolved.
    I posted the corrected code below for traversing a 2D Array that uses incremented integers as keys. Maybe it will help someone.


    
    for($j=0; $j < [B]count($slideShowArr)[/B]; $j++){
    	for($k=0; $k < [B]count($slideShowArr[$j])[/B]; $k++){
    		print $slideShowArr[$j][$k]. ", ";
    	}
    	print "<br>";
    }
    
    Code (markup):

     
    RogerDodgr, Jun 14, 2009 IP