PHP Classes

ps stack: Manage a stack like in Postscript

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 176 All time: 8,715 This week: 794Up
Version License Categories
ps_stack 1.0GNU General Publi...PHP 5, Data types


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: 39
All time rank: 1127164 in United States United States
Week rank: 152 Up12 in United States United States Up
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,715
This week:794Up