Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Pop the element off the end of array

Tue Oct 28, 2008 1:21 am

Code:

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




Post a reply
  Related Posts  to : Pop the element off the end of array
 Array element navigation     -  
 UnSet array element     -  
 access element in array C++     -  
 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