note 105481 added to class.arrayobject
| From: | MarkAndrewSlade at gmail dot com | Date: | Mon, 22 Aug 2011 01:05:28 +0000 |
| Subject: | note 105481 added to class.arrayobject | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182628@lists.php.net to get a copy of this message | ||
I found the description of STD_PROP_LIST a bit vague, so I put together a simple demonstration to
show its behavior:
<?php
$a = new ArrayObject(array(), ArrayObject::STD_PROP_LIST);
$a['arr'] = 'array data';
$a->prop = 'prop data';
$b = new ArrayObject();
$b['arr'] = 'array data';
$b->prop = 'prop data';
// ArrayObject Object
// (
// [prop] => prop data
// )
print_r($a);
// ArrayObject Object
// (
// [arr] => array data
// )
print_r($b);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 50.89.175.244
----
Manual Page -- http://www.php.net/manual/en/class.arrayobject.php
Edit -- https://master.php.net/note/edit/105481
Del: integrated -- https://master.php.net/note/delete/105481/integrated
Del: useless -- https://master.php.net/note/delete/105481/useless
Del: bad code -- https://master.php.net/note/delete/105481/bad+code
Del: spam -- https://master.php.net/note/delete/105481/spam
Del: non-english -- https://master.php.net/note/delete/105481/non-english
Del: in docs -- https://master.php.net/note/delete/105481/in+docs
Del: other reasons-- https://master.php.net/note/delete/105481
Reject -- https://master.php.net/note/reject/105481
Search -- https://master.php.net/manage/user-notes.php