PHP linear table in the stack and out of the stack instance analysis, PHP linear table instance Analysis
In this paper, we describe the usage of PHP linear table in the stack and the stack. Share to everyone for your reference. Specific as follows:
<?php $stack = Array ("Simon", "Elaine"); Defines the array array_push ($stack, "Helen", "Peter"); Into the stack print_r ($stack);?>
<?php $stack = Array ("Simon", "Elaine"); Defines the array array_unshift ($stack, "Helen", "Peter"); Into the stack print_r ($stack);?>
<?php $stack = Array ("Simon", "Elaine", "Helen", "Peter"); echo Array_pop ($stack). " /n "; Out of Stack print_r ($stack);?>
<?php $stack = Array ("Simon", "Elaine", "Helen", "Peter"); echo Array_shift ($stack). " /n "; Out of Stack print_r ($stack);?>
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/1015427.html www.bkjia.com true http://www.bkjia.com/PHPjc/1015427.html techarticle PHP Linear table in the stack and the example of the stack, PHP linear table example Analysis of the example of the PHP linear table in the stack and the use of the stack. Share to everyone for your reference. Specific as follows: P ...