<?php
deque =new\Ds\Deque([10,20,5,40,50,8]);echo("The elements in the deque: \n");print_r(deque);echo("\n The element at index 3 in the deque:");var_dump($deque->get(3));?>
PHP
示例2
<?php
deque =new\Ds\Deque(["Tutorials","Point","India","Tutorix"]);echo("The elements in the deque \n");print_r(deque);echo("\n The element at index 1 in the deque:");var_dump($deque->get(1));?>