array_pop: Pop the element off the end of array : Stack : Data Structure PHP Source Code


PHP Source Code » Data Structure » Stack »

 

array_pop: Pop the element off the end of array



<?php
   $states = array("Ohio","New York","California","Texas");
   $state = array_pop($states)// $state = "Texas"
   print_r($states);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Stack