An implemantation of stack in PHP