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?     -  
 Imploding an Array     -  
 Get array chunk     -  
 Array sort     -  
 Array size to zero     -  
 C++ array copying     -  
 Add elements to the end of an array     -  
 Pad array to the specified length with a value     -  
 Array C++ Class     -  

Topic Tags

PHP Arrays