PHP - Fonction Ds \ Stack :: push ()

La fonction Ds \ Stack :: push () peut pousser les valeurs sur une pile.

Syntaxe

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

La fonction Ds \ Stack :: push () ne renvoie aucune valeur.

Exemple

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