Core Function Shift

From Sputnik Wiki
Jump to: navigation, search
Shift( <array> )

Contents

Description

Delete the first item in an array.

Parameters

array

The array to use.

Return Value

Success - Returns the shifted object.

Failure - Returns empty string.

Remarks

None

Example

$array = array ( "One", "Two", "Three" );
 
Shift($array);
 
$i = 0;
Foreach ( $array as $i )
{
	println("Element ($i) is: " . $i);
	$i++;
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox