test.php
author viric@llimona
Thu, 31 May 2007 23:22:14 +0200
changeset 11 d5b5409fed69
parent 0 e269d7e3f581
permissions -rw-r--r--
Arreglat un bug de que no hi poden haver excepcions amb nom+preu iguals.

<?
	function test($num)
	{
		for ($i=0; $i < $num; $i++)
			$array[$i+10] = chr(32+$i);
		return $array;
	}

	$a = test(50);
	reset($a);

	while(list($key,$val) = each($a))
	{
		echo "Element ". $key ." és \"" . $val . "\". <br>";
	}
?>