Skip to content
Related Articles

Related Articles

Improve Article

PHP | Ds\Stack Functions Complete Reference

  • Last Updated : 20 Jun, 2019

Stack is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out). The Ds\Stack uses Ds\Vector internally.

Requirements: PHP 7 is required for both extension and the compatibility polyfill.

Installation: The easiest way to install data structure by using the PECL extension.

pecl install ds

The complete list of data structure DS\Stack are given below:


My Personal Notes arrow_drop_up
Recommended Articles
Page :