<?php $dll = new SplDoublyLinkedList(); $dll->push(2); $dll->push(3); $dll->unshift(5); $dll->rewind(); while($dll->valid()){ echo $dll->current().'<br />'; $dll->next();//switch to next list item }
You have javascript disabled. You will not be able to edit any code.