<?php
require_once("stack.php");
$s=&new stack();
for($i=1;$i<=10; $i+=2) $s->push($i);
$s->debug();
printf("The top of the stack is %d <br>",$s->top());
printf("The number of elements of the stack is %d <br>",$s->count());
while (!$s->isempty()) printf("Poped element %d , ",$s->pop());
?>
|