$arr =array($ar1=array("рр","ыы","ыаы",20,"ыаы",2),
$ar2=array("ыпв","ып","вп",9,"впрр",4),
$ar3=array( "вр","вр","вр",30,"вр",5),
$ar4=array("врар","ароа","аоао",50,"ааоао",12));
$rows=4;
$columns=6;
for($i=0;$i<$rows;$i++)
{
for($j=0;$j<$columns;$j++)
{
$arr = [
["рр","ыы","ыаы",20,"ыаы",2],
["ыпв","ып","вп",9,"впрр",4],
[ "вр","вр","вр",30,"вр",5],
["врар","ароа","аоао",50,"ааоао",12]
];
for($i = 0, $counti = count($arr); $i < $counti; $i++)
{
for($j = 0, $countj = count($arr[$i]); $j < $countj; $j++)
{
}
}