pre php test array raz dva print_r test echo foreach test as echo pre

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<pre>
<?php
$test = array('raz', 'dva');
print_r($test);
echo "\n\n";
foreach ($test as $k=>$v) {
echo "$k\t$v\n"
}
?>
</pre>