I have an two dimensional array called $array. After another question here, I know how to change the whole child array from a two dimensional array like this:
Code
$keys = array(0, 1);
foreach ($keys as $key) {
foreach ($array[$key] as $key2 => $value) {
$array[$key][$key2] = str_replace($stamm, $stamm2, $value);
}
}
How is it possible to change only $array[0][3],$array[0][4] and $array[1]?
$array use $stamm + ending of an verb for a time for example "ons".
I have to change for some cases the root of the verb ($stamm).
With the code above it works perfectly to change the whole array[0] and array[1]. .