Core Function Pop
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Pop( <array> ) </pre> === Description === Delete the first item in an array. === Parameters === ==== array ==== The array to use. === Return Value === Success - Retu...") |
(→Description) |
||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
− | Delete the | + | Delete the last item in an array. |
=== Parameters === | === Parameters === |
Revision as of 20:40, 19 April 2012
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 0.
Remarks
None
Example
$array = array ( "One", "Two", "Three" ); Pop($array); $i = 0; Foreach ( $array as $i ) { println("Element ($i) is: " . $i); $i++; }