PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Is it becouse the Register_globals option in php.ini is off and if so, how can make it print the variables without turning the register_globals option ON?
foreach($smth as $key=>$val)
echo '<br>['.$key.']=>'.$val;
Or just use print_r(), as it described in PHP manual:
<pre>
<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x','y','z'));
print_r ($a);
?>
</pre>