ah, there's a very useful and informative section of the manual, on array do's and don'ts (aptly named): http://www.php.net/manual/en/language.types.array.php explains the $foo[bar] phenomenon, and why to avoid it.. -- Johnny Jørgensen <aggie at aggie.dk> "Eagles may soar, but weasels don't get sucked into jet engines"