I’m looking to use the array_replace function but the version of php I’m running doesn’t support it. I was wondering if anyone new of any alternative ways of doing this?
The version of php I’m running is 5.2.17
I have an array and I just want to replace elements with another array where the keys match.
I’m not able to update the version of php on the server btw 🙁
You mean something like this?
or just
or maybe even
(I currently don’t see any difference in the behaviour of
array_merge()andarray_replace()…)