Core Function Pop
From Sputnik Wiki
(Difference between revisions)
(→Description) |
(→Return Value) |
||
Line 17: | Line 17: | ||
Success - Returns the popped object. | Success - Returns the popped object. | ||
− | Failure - Returns | + | Failure - Returns empty string. |
=== Remarks === | === Remarks === |
Revision as of 06:06, 24 August 2013
Pop( <array> )
Contents |
Description
Delete the last item in an array.
Parameters
array
The array to use.
Return Value
Success - Returns the popped object.
Failure - Returns empty string.
Remarks
None
Example
$array = array ( "One", "Two", "Three" ); Pop($array); $i = 0; Foreach ( $array as $i ) { println("Element ($i) is: " . $i); $i++; }