Documentation

Horde_Support_Stack
in package

Simple class for using an array as a stack.

Copyright 2008-2017 Horde LLC (http://www.horde.org/)

Tags
category

Horde

license

http://www.horde.org/licenses/bsd

Table of Contents

$_stack  : array<string|int, mixed>
__construct()  : mixed
peek()  : mixed
pop()  : mixed
push()  : mixed

Properties

$_stack

protected array<string|int, mixed> $_stack = array()

Methods

__construct()

public __construct([mixed $stack = array() ]) : mixed
Parameters
$stack : mixed = array()
Return values
mixed

peek()

public peek([mixed $offset = 1 ]) : mixed
Parameters
$offset : mixed = 1
Return values
mixed

pop()

public pop() : mixed
Return values
mixed

push()

public push(mixed $value) : mixed
Parameters
$value : mixed
Return values
mixed

Search results