|
ArrayObject::appendAppends the value Description
public void ArrayObject::append
( mixed
$value
)Appends a new value as the last element.
Parameters
Return ValuesNo value is returned. Examples
Example #1 ArrayObject::append example
<?php The above example will output: object(ArrayObject)#1 (5) { [0]=> string(5) "first" [1]=> string(6) "second" [2]=> string(5) "third" [3]=> string(6) "fourth" [4]=> array(2) { [0]=> string(4) "five" [1]=> string(3) "six" } } See Also
|