• PHP Video Tutorials

PHP - Ds\Stack::push() Function



Ds\Stack::push() function can push the values onto a stack.

Syntax

public void Ds\Stack::push([ mixed $...values ] )

Ds\Stack::push() function doesn't return any value.

Example

<?php 
   $stack = new \Ds\Stack(); 
   $stack->push("Tutorials"); 
   $stack->push("Point"); 
   $stack->push("India"); 
   
   print_r($stack); 
?>
php_function_reference.htm
Advertisements