Login   Register  
PHP Classes
elePHPant
Icontem

Bounded Queue: Manage queue with a limited number of elements

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-11-04 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 281 All time: 6,675 This week: 1,478Up
Version License PHP version Categories  
bounded-queue 0.3BSD License5.0PHP 5, Data types
Description Author  

This class can be used to manage queue with a limited number of elements.

It can push and pop item values of any type into a queue array.

If the queue already contains the limit number of items when a new item is pushed, the item at the bottom of the queue is popped out.

Innovation Award  
PHP Programming Innovation award nominee
November 2009
Number 9


Prize: One book of choice by Apress
Queues can be used to maintain a set of elements that can be pushed and popped from the queue.

Usually, queues can maintain an unlimited set of elements. This class provides a different implementation that allows to limit the number of items present in the queue at any moment.

Manuel Lemos
Picture of Ahmad Retha
Name: Ahmad Retha <contact>
Classes: 3 packages by
Country: United Kingdom United Kingdom
Age: ???
All time rank: Not yet ranked
Week rank: 176365 in United Kingdom United Kingdom
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file BoundedQueue.php Class The BoundedQueue class

 Version Control Unique User Downloads Download Rankings  
 0%Total:281All time:6,675
 This week:0This week:1,478Up