Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Add elements to the end of an array

Tue Oct 28, 2008 1:03 am

Code:

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

$myarray[] = 'the fourth element';

echo(
$myarray[3]);
?>




Post a reply
  Related Posts  to : Add elements to the end of an array
 Elements of the enumerated array are numbers     -  
 find out the number of elements in an array of 8-bit element     -  
 Return an array with elements in reverse order     -  
 Removing elements from array list with the iterator     -  
 Array difference for associate array     -  
 Elements of a Java Program     -  
 clone arrayList elements     -  
 elements of a GridBagLayout organized     -  
 lesson5: XSD Complex elements     -  
 count elements in a vector     -  

Topic Tags

PHP Arrays