I wonder is there a way to update variables of an array from variables from another array like this:
Let's say we have an multidimensional array first with values:
$first[0][1][checked] = "1"
$first[1][2][checked] = "2"
$first[2][0][something] = "foo"
...and then we have another multidimensional array $second, with values:
$second[0][1][checked] = "3"
$second[1][2][something] = "foo"
.. and there is no variable:
$second[2][0][something]
Is it possible to somehow weld these two multidimensional arrays together in a way that gives me a result like this:
$result[0][1][checked] = "3" (was 1 in first)
$result[1][2][checked] = "2" (was only in first)
$result[1][2][something] = "foo" (was only in second)
... and there should not be this variable, which was in first but was not in second:
$result[2][0][something] = "foo"