This is a simple PHP class to manage a collection of items. Refer to the sample at the end for usage example. Collection.php: <?php class Collection { var $elements = array(); var $counter = 0; var $pointer = 0; function Collection() { } function add($element) { $this->elements[$this->counter] = $element; $this->counter++; $this->pointer++; } function remove($element) { …
Monthly Archives: August 2003
Welcome
Welcome! I had to twist their arms, but Movable Type, Textile and CSS are now cooperating, and this blog is close to how I want it. I should publish the first posts in the next few days. In the meantime, please report errors to me. Â