note 86951 deleted from arrayobject.construct by danbrown
| From: | danbrown@php.net | Date: | Wed, 12 Nov 2008 15:10:11 +0000 |
| Subject: | note 86951 deleted from arrayobject.construct by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146443@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
The docs above are invalid regarding parameters. It should be:
Array $array[, Integer $flags[, Iterator $iterator_class="ArrayIterator"] ]
Flags can be the values:
ArrayObject::ARRAY_AS_PROPS - Array indices can be accessed as properties in read/write. (ex.
$array->prop)
ArrayObject::STD_PROP_LIST - Properties of the object have their normal functionality when accessed
as list (var_dump, foreach, etc.). Will treat the ArrayObject as any other object when accessed as
specified.