Proposal for "PHP_ArrayOf"

» Metadata » Status
» Description
Class for strongly-typed array/collection/list and to get control over what can be added to it.

The reason this class is not extending SPL's ArrayObject is that we lose control over offsets and other useful checking. That was my first route to implement this but it just didn't work out good. Now, the question is whether the PHP_ArrayOf class should mimic more of the ArrayIterator's methods?

The package can be installed from: http://pear.11abacus.com/package/PHP_ArrayOf
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2007-11-27
  • Proposal: 2007-11-27
  • Call for Votes: 2008-04-24