Construct a new array object with ArrayObject::__construct from array in PHP
Description
The following code shows how to construct a new array object with ArrayObject::__construct from array.
Example
<?php/* w w w.ja v a 2s .co m*/
$array = array('1' => 'one',
'2' => 'two',
'3' => 'three');
$arrayobject = new ArrayObject($array);
var_dump($arrayobject);
?>
The code above generates the following result.