Core Function Shift
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> Shift( <array> ) </pre> === Description === Delete the last item in an array. === Parameters === ==== array ==== The array to use. === Return Value === Success - Ret...")
Newer edit →
(Created page with "<pre> Shift( <array> ) </pre> === Description === Delete the last item in an array. === Parameters === ==== array ==== The array to use. === Return Value === Success - Ret...")
Newer edit →
Revision as of 12:20, 29 November 2011
Shift( <array> )
Contents |
Description
Delete the last item in an array.
Parameters
array
The array to use.
Return Value
Success - Returns the shifted object.
Failure - Returns 0.
Remarks
None
Example
$array = array ( "One", "Two", "Three" ); Shift($array); $i = 0; Foreach ( $array as $i ) { println("Element ($i) is: " . $i); $i++; }