AlternarColor array iterator 1.0
AlternarColor array iterator is a very simple class that iterates over a set (of color codes or names maybe?) and returns the next element in the set on each iteration, coming to first element again. It can be useful for generating listings with rows using alternated colors.
AlternarColor array iterator can take an array with an arbitrary number of colors names or values. In the first iteration it returns the first color in the array. In the next iteration it returns the following color, and so on. When the end or the array is reached, it returns the first color again.
Limitations:
The comments in the class are in Spanish.
Atributes:
- colores // Available Colors
- color // Actual color
Methods:
- alternarColor( array("color1",...,"colorN") ) // Constructor
- imprimir () // Prints out value
More popular Graph & Chart
- phpMyGraph 5.0.4 (2 years, 2 months 22 days ago)
- JpGraph 3.5.0b1 (1 year, 11 months 23 days ago)
- Max's Chart (2 years, 2 months 23 days ago)
- Barcode Generator 2.2.0 (7 years, 7 months 20 days ago)
- Barcode Image Generator 1.0 (2 years, 9 months 29 days ago)
Listing Files

alternarColor.php- 787 Bytes
- 10/06/2005 00:12:10

example.php- 934 Bytes
- 10/06/2005 00:12:10
- FREE MySQL Cloud Database Super Simple, Zero-Management MySQL Cloud DB. Use It FREE!
- Pinterest clone Start your own pin board social network today. Get Pintastic and start your own pinterest clone network.
- MYRE Real Estate Software Professional Real Estate solutions by MYREPHP PROGRAMMING!
