|
update : 2015.11.03
php.shukuma.com검색:
|
ArrayObject::__construct(PHP 5 >= 5.0.0) ArrayObject::__construct — Construct a new array object 설명
public ArrayObject::__construct
([ mixed
$input = []
[, int $flags = 0
[, string $iterator_class = "ArrayIterator"
]]] )This constructs a new array object. 인수
반환값Returns an ArrayObject object on success. 오류/예외Throws InvalidArgumentException when:
예제
Example #1 ArrayObject::__construct() example
<?php위 예제의 출력:
object(ArrayObject)#1 (3) {
[1]=>
string(3) "one"
[2]=>
string(3) "two"
[3]=>
string(5) "three"
}
|