Just let everyone know that I found a solution for this:
$test = array();
$test[0][0][0] = "test";
$test[0][0][1] = "test";
$test[0][0][2] = "test";
$test[0][0][3] = "test";
$test[0][1] = "test";
$test[0][2] = "test";
$test[0][3] = "test";
$test[1][0][0] = "test";
$test[1][0][1] = "test";
$test[1][0][2] = "test";
$test[1][0][3] = "test";
$test[1][1] = "test";
$test[1][2] = "test";
$test[1][3] = "test";
function replace(&$value)
{
if(is_array($value)) { array_walk($value, 'replace'); }
else { $value = "success"; }
}
array_walk($test, 'replace');
If you are having problems with multi-dimentional arrays, then this should be able to solve your problem (of course you need to change the function depending on your needs but the main concept is the same)