SharedStack

php\util\SharedStack

extends: php\util\SharedCollection

Class SharedStack

Methods


__construct($array)
Parameters:
  • $arrayarray, Traversable - (optional)
push($value)
Parameters:
  • $valuemixed
Returns:

mixed peek value

pop()
Returns:mixed peek value
peek()
Returns:mixed
count()
Returns:int
clear()
isEmpty()
Returns:bool