> For the complete documentation index, see [llms.txt](https://phper.shujuwajue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://phper.shujuwajue.com/biao-zhun-php-ku-ff08-spl/shu-ju-jie-gou/splstack-zhan-de-gong-neng.md). Agents can also search and read this documentation through its [MCP server](https://phper.shujuwajue.com/~gitbook/mcp).

# SplStack - 栈的功能

SplStack类通过使用一个双向链表来提供栈的主要功能。
