PHP标准库:栈、堆、队列、定长数组栈:先进后出$stack = new SplStack();$stack->push("data1\n");$stack->push("data2\n");echo $stack->pop(); # data2ec...