Add elements to the end of an array : Array Element : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Element »

 

Add elements to the end of an array



<?
$myarray = array('one', 2'three');

$myarray[] 'the fourth element';

echo($myarray[3]);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Element