push
adds new item to the end of an array
Syntax
push(val)
Returns
Nothing
Parameters
- val (var)
- adds new element to the end of the array
Usage
var data = ['this', 'is', 'an', 'example', 'array'];
data.push("value");
echo( objectToString(data) );
/* the array will now contain:
[
"this",
"is",
"an",
"example",
"array",
"value"
]
*/