Collection utilities for PHP 5.1 and greater