PHP » GoLang |
login |
register |
about
|
GoLang ArrayObject::append
request it (530)
GoLang replacement for PHP's ArrayObject::append
[edit | history]
ArrayObject::append(PHP 5, PHP 7) ArrayObject::append — Appends the value DescriptionAppends a new value as the last element.
Parameters
Return ValuesNo value is returned. Examples
Example #1 ArrayObject::append() example
<?phpThe 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"
}
}
|
more
Most requested
more
Last requests
|