I think this has been up before, but could\'nt find any answer to it. If it\'s already answered please point me in the right direction with a link.
I have an array t
Below code will also achieve the same result.
$resultArray = array_map('current',$inputArray);
OR
$resultArray = array_map('array_pop',$inputArray);
Note: I have ignored OP's expected result keys. Because it is not possible to have the same keys in the array. The last key will replace the previous one if the same.