Posted by meltedown on 10/30/80 11:23
According to the manual, key() returns the index element of the current
array position.
I have an array
Array
(
[7857] => Soaps
[7861] => Sponges
[7863] => Bath Brushes
[7858] => Toothpastes
[7865] => Colognes
[7960] => Miscellaneous
)
When I go
$pline=key($plines);
I get nothing for $pline.
What is going on ?
Is it possible that the array does not have a current array position ?
[Back to original message]
|