$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++)
{
}
}