PHP Classes & Interfaces


Name: SplStack

Date: Apr-24-2017
PHP version: 5.3.3
Type: Internal

class SplStack extends SplDoublyLinkedList implements ArrayAccess, Countable, Traversable, Iterator

Public Methods

public pop ( )

public shift ( )

public push ( $value )

public unshift ( $value )

public top ( )

public bottom ( )

public count ( )

public isEmpty ( )

public setIteratorMode ( $flags )

public getIteratorMode ( )

public offsetExists ( $index )

public offsetGet ( $index )

public offsetSet ( $index, $newval )

public offsetUnset ( $index )

public rewind ( )

public current ( )

public key ( )

public next ( )

public prev ( )

public valid ( )

Constants

const IT_MODE_LIFO = 2

const IT_MODE_FIFO = 0

const IT_MODE_DELETE = 1

const IT_MODE_KEEP = 0