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

array unshift

Tue Oct 28, 2008 1:26 am

Code:

<?php
$states
= array("A","B");
print
"before unshift:<br />";
print_r($states);

array_unshift($states,"D","E");

print
"<br />after unshift:<br />";
print_r($states);
?>





Post a reply
  Related Posts  to : array unshift
 Array difference for associate array     -  
 compare an array with another array?     -  
 XML Document into an Array in php     -  
 Shuffle Array     -  
 Pop the element off the end of array     -  
 Here is how to display any 2d array     -  
 PHP Array Functions     -  
 Array Passing     -  
 Array shuffle     -  
 Average of an array. Please help     -  

Topic Tags

PHP Arrays