php array_merge associative arrays

后端 未结 7 1225
天命终不由人
天命终不由人 2020-12-09 08:41

I\'m trying to prepend an item to the beginning of an associative array. I figured the best way to do this is to use array_merge, but I\'m having some odd consequences. I

相关标签:
7条回答
  • 2020-12-09 09:22

    From the docs:

    Values in the input array with numeric keys will be renumbered with incrementing keys starting from zero in the result array.

    0 讨论(0)
提交回复
热议问题