Core Function Pop

From Sputnik Wiki
Revision as of 12:38, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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 empty string.

Remarks

None

Example

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