PHP Array and ArrayObject

后端 未结 6 1834
鱼传尺愫
鱼传尺愫 2021-02-02 08:03

which one should be used to manipulating data, Array or Array Object? Like search,sort and other array manipulations.

6条回答
  •  囚心锁ツ
    2021-02-02 08:38

    Array Object could be extended and functions overidden. For example, your append() function could format a number to two decimal places before calling parent::append()

提交回复
热议问题