pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
Array

Array.push()


Method push

array push(array list, mixed element)

Description

Threats an Array as a stack and pushes the element onto the end.

Example

Array.push(({ "a", "b", "c", "d" }), "e"); > ({ "a", "b", "c", "d", "e" })

See also

ADT.Stack , ADT.Stack.push

Module reference for Pike v7.8 release 116, 2008-12-31