Implementation of the stack data structure using PHP class