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

Return an array with elements in reverse order

Tue Oct 28, 2008 1:15 am

Code:
<?php
   $states
= array("A","B","C");
   print
"Before reverse: <br />";
   
print_r($states);
   print
"<br />After reverse: <br />";
   
print_r(array_reverse($states));
?>




Post a reply
  Related Posts  to : Return an array with elements in reverse order
 Return all the keys of an array     -  
 Return all the values of an array using array_values     -  
 Add elements to the end of an array     -  
 Elements of the enumerated array are numbers     -  
 Removing elements from array list with the iterator     -  
 find out the number of elements in an array of 8-bit element     -  
 reverse list     -  
 Java Reverse Engineering Tutorial.pdf     -  
 reverse ,length of strings as number of bytes     -  
 SQL ORDER BY     -  

Topic Tags

PHP Arrays