Anyone can help me with a function or point me into the direction on cutting a multidimensional array?
Here is what I need:
$array[x][y][b][q][o][p];
$array[b][c][f][q][l][v];
$newArray = cut_array_depth($array, 2);
// Would return a new array with a maximum dimension of 2 elements
// all others would be left out
$newArray[][];
Thanks,