Mega Code Archive

 
Categories / Php / Data Type
 

Add elements to the end of an array

<? $myarray = array('one', 2, 'three'); $myarray[] = 'the fourth element'; echo($myarray[3]); ?>