I'm trying to implement a class which has an array that I use as a stack. For pushing and popping, the obvious choice would seem to be array_push($this->theStack, $someData) and array_pop($this->theStack). However, when I run the script, it insists that "$this->theStack" isn't an array. I know that the array was properly initialized, though, so I don't believe there is a problem there. What else could I be doing wrong?