On Wednesday 26 February 2003 00:37, Jorge Miguel Fonseca Martins wrote:
As this has nothing to do with databases you should post to the php-general
list.
> $test[]="a";
> $test[]="b";
>
> foreach ($test as $key=>$value)
> {
> if($key == "something") echo $key
> }
>
> even though theres n
Hi! Anyone got an idea what the problem may be with the following code
$test[]="a";
$test[]="b";
foreach ($test as $key=>$value)
{
if($key == "something") echo $key
}
even though theres no key in the array named "something" the code will
print the key "0"
Thanks