Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.5K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Java
10.8K+ articles
PHP
3.9K+ articles
PHP-function
2.3K+ articles
PHP-ds_stack
12 posts
Recent Articles
Popular Articles
PHP | Ds\Stack count() Function
Last Updated: 30 July 2019
The Ds\Stack::count() function is an inbuilt function in PHP which is used to count the number of elements present in the Stack. Syntax:int Ds\Stack::count( void )Paramete...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP | Ds\Stack allocate() Function
Last Updated: 10 May 2021
The Ds\Stack::allocate() function is an inbuilt function in PHP which is used to allocate memory for required capacity. This function allocates sufficient memory for a giv...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP | Ds\Stack __construct() Function
Last Updated: 30 July 2019
The Ds\Stack::__construct() function is an inbuilt function in PHP which is used to create a new instance of stack.Syntax:public Ds\Stack::__construct( $values )Parameters...
read more
Web Technologies
PHP
PHP-ds_stack
PHP | Ds\Stack capacity() Function
Last Updated: 30 July 2019
The Ds\Stack::capacity() function is an inbuilt function in PHP which is used to return the current capacity of the stack.Syntax:int Ds\Stack::capacity( void )Parameters: ...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP Ds\Stack Functions Complete Reference
Last Updated: 25 January 2023
Stack is a linear data structure that 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)...
read more
Web Technologies
PHP
PHP-ds_stack
PHP | Ds\Stack isEmpty() Function
Last Updated: 18 January 2021
The Ds\Stack::isEmpty() function of PHP Ds\Stack class is used to check whether a Stack is empty or not. This method returns a boolean value, True if the Stack is empty ot...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP | Ds\Stack clear() Function
Last Updated: 20 January 2021
The Ds\Stack::clear() function of PHP is used to remove all elements from a Stack and clear it. This function simply removes all of the elements from the Stack but not com...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP | Ds\Stack toArray() Function
Last Updated: 19 January 2021
The Ds\Stack::toArray() function of PHP is used to convert the stack to an array and returns the converted array. This function does not modify the actual Stack.Syntax:voi...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP | Ds\Stack pop() Function
Last Updated: 18 January 2021
The Ds\Stack::pop() function of PHP is used to remove the element present at the top of the Stack instance. This function also returns the top element of the stack after r...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP | Ds\Stack push() Function
Last Updated: 20 January 2021
The Ds\Stack::push() function of PHP is used to add elements at the end of the stack. That it is used to push elements on to a stack. The elements being pushed can be of m...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP | Ds\Stack copy() Function
Last Updated: 18 January 2021
The Ds\Stack::copy() function of PHP Ds\Stack class is used to create a shallow copy of the original stack and returns the copied stack.Syntax:Ds\Stack public Ds\Stack::co...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
PHP | Ds\Stack peek() Function
Last Updated: 18 January 2021
The Ds\Stack::peek() function of PHP is used to get the element present at the top of the Stack instance. This function just returns the top element of the stack without r...
read more
Web Technologies
PHP-function
PHP
PHP-ds_stack
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !