Pop the element off the end of array

Tue Oct 28, 2008 12:21 am

Code:

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




  Related Posts  to : Pop the element off the end of array
 UnSet array element     -  
 access element in array C++     -  
 Array element navigation     -  
 find the largest element stored in the array     -  
 find out the number of elements in an array of 8-bit element     -  
 Array difference for associate array     -  
 Usage of big element tag.     -  
 print element in 2d matrix     -  
 lesson1 : <schema> Element     -  
 lesson2 : XSD simple element     -  

Topic Tags

PHP Arrays