|
update : 2015.11.03
php.shukuma.com검색:
|
iterator_to_array(PHP 5 >= 5.1.0) iterator_to_array — Copy the iterator into an array 설명Copy the elements of an iterator into an array. 인수
반환값
An array containing the elements of the 변경점
예제
Example #1 iterator_to_array() example
<?php위 예제의 출력:
array(4) {
["recipe"]=>
string(8) "pancakes"
[0]=>
string(3) "egg"
[1]=>
string(4) "milk"
[2]=>
string(5) "flour"
}
array(4) {
[0]=>
string(8) "pancakes"
[1]=>
string(3) "egg"
[2]=>
string(4) "milk"
[3]=>
string(5) "flour"
}
|