title: array_replace alternatives for earlier version of php?
body: <p>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? </p>
  
  <p>The version of php I'm running is 5.2.17</p>
  
  <p>I have an array and I just want to replace elements with another array where the keys match.</p>
  
  <p>I'm not able to update the version of php on the server btw :(</p>