I have two arrays, for example the following:
$array1 = array(3,4,3,1);
$array2 = array(2,5,3,0);
each key of the 2 arrays should now be compared and with the smaller value number of each key, I want to create a new array. In this case the new array should be this:
$result = array(2,4,3,0)
How can I do this?