array_push Push one or more elements onto the end of array : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

array_push Push one or more elements onto the end of array



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

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function