Core Function Remove
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> Remove( <array>, <start-id>, <end-id> ) </pre> === Description === Delete items from an array starting at a given location and stopping at a given location === Parameter...")
Newer edit →
(Created page with "<pre> Remove( <array>, <start-id>, <end-id> ) </pre> === Description === Delete items from an array starting at a given location and stopping at a given location === Parameter...")
Newer edit →
Revision as of 12:23, 29 November 2011
Remove( <array>, <start-id>, <end-id> )
Contents |
Description
Delete items from an array starting at a given location and stopping at a given location
Parameters
array
The array to use.
Return Value
Success - Returns the amount of objects removed.
Failure - Returns 0.
Remarks
None
Example
$array = array ( "One", "Two", "Three", "Four", "Five" ); Remove($array, 1, 2); $i = 0; Foreach ( $array as $i ) { println("Element ($i) is: " . $i); $i++; }