Core Function Pop
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(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...")
Newer edit →
(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...")
Newer edit →
Revision as of 12:19, 29 November 2011
Pop( <array> )
Contents |
Description
Delete the first 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++; }