Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
各要素を前の要素と比較したい非常に大きな配列があります。
終了した各要素について、array_pop を使用してその要素を削除するのは良い習慣 (およびより良いパフォーマンス) ですか?
ありがとう。
私があなたで、非連想配列を扱っていたとしたら、私はそうするでしょう
$n = count($array); for($i = 1; $i < $n; $i++){ //compare $array[$i] to $array[$i - 1] }