array problem
Posted: Wed Jul 09, 2003 3:31 am
I have this code:
It was suppose to print something like
but all it does is:
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?
Many thanks in advance
Code: Select all
<?php
<?php
$limbaje = array(0=>"Perl", 1=>"PHP", 2=>"Python");
$limita = count($limbaje);
for ($i = 0; $i < $limita; $i++)
{
echo "<br>$i => $limbaje[i]";
}
?>
?>Code: Select all
0=>Perl
1=>PHP
2=>PythonCode: Select all
0=>
1=>
2=>Many thanks in advance