This section demonstrates the use of the append function of the php array
This section demonstrates the use of the append function of the php array
<?php
$ar1=new ArrayObject(array("aaa","bbb","ccc"));
foreach ($ar1 as $a)
echo $a." ";
$ar1->append("ddd");
echo "<br>after appending <br> ";
foreach ($ar1 as $a)
echo $a." ";
?>