Reference Array by index : Array Element « Data Structure « PHP
- PHP
- Data Structure
- Array Element
Reference Array by index
<?
$myarray = array('one', 2, 'three');
echo($myarray[0]);
echo($myarray[1]);
echo($myarray[2]);
?>
Related examples in the same category