Source Code:
(back to article)
<?php $subarray = ['a', 'b', 'c']; $new_keys = ['x', 'y', 'z']; $renamed_array = array_combine($new_keys, $subarray); print_r($renamed_array);
Result:
Report an issue