In Action

Php Toycode - Simple Array

Simple array example. Not much else to say.

forloop



Toycode

Php Code

Just cut-n-paste to reuse.

     
<?php
$arr[0] = "elem0";
$arr[1] = "elem1";
$arr[2] = "elem2";
$arr[3] = "elem3";

foreach ($arr as $i => $v)
{
	echo $v . "\n";
}
?>