array_unshift : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

array_unshift



<?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);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function