. */ // $Id: php52.php 68 2010-01-16 11:11:50Z extremo $ class SplQueue implements Countable { private $_data = array(); public function enqueue($data) { array_push($this->_data, $data); } // end enqueue(); public function dequeue() { return array_shift($this->_data); } // end dequeue(); public function count() { return sizeof($this->_data); } // end count(); } // end SplQueue();