Cannot iterate over iterator with array_walk since php 7.4

后端 未结 0 597
日久生厌
日久生厌 2021-01-24 06:50
$iterator = new ArrayIterator([1, 2]);
array_walk($iterator, function($item) {echo $item . PHP_EOL;});

This piece of php code outputs the items (1 and 2

相关标签:
回答
  • 消灭零回复
提交回复
热议问题