PHP Classes

ps stack: Manage a stack like in Postscript

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 178 All time: 8,739 This week: 49Up
Version License Categories
ps_stack 1.0.0GNU General Publi...PHP 5, Data types
Description 

Author

This class can be used to manage a LIFO stack (Last In First Out) of values like in the Postscript language.

It implements most of the Postscript stack operations except for mark and cleartomark.

The class can push and pop values from the stack, get the value at the top of the stack or at a given position, get the count of values, exchange the position of two values, duplicate the value at the top of the stack, roll the stack values by a given number of positions.

Picture of Asher Wolfstein
  Performance   Level  
Name: Asher Wolfstein <contact>
Classes: 15 packages by
Country: United States United States
Age: 41
All time rank: 1121164 in United States United States
Week rank: 62 Up7 in United States United States Up
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file list.abstr.php Aux. Abstract List Class
Accessible without login Plain text file list.inter.php Aux. List Interface
Plain text file stack.class.php Class Main Class
Plain text file stack.class5.php Class Main Class - PHP5.x

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:178
This week:0
All time:8,739
This week:49Up