iterator_to_array

  • (PHP 5 >= 5.1.0, PHP 7)
  • Copy the iterator into an array