<?php
deque =new\Ds\Deque([1,2,3,4,5]);echo("The elements in the deque: \n");print_r(deque);echo("\n The number of elements in the deque: ");print_r($deque->count());?>
PHP
示例2
<?php
deque =new\Ds\Deque(["Tutorials","Point","Tutorix"]);echo("The elements in the deque: \n");print_r(deque);echo("\n The number of elements in the deque: ");print_r($deque->count());?>