count($array) returns the number of items in the array.
$array[$i] retreives the item at location $i, but remember, this location is ZERO-BASED. That means if we have an array of 10 items, the positions would be from 0 to 9.
In the above code you have $i <= count($userVars)
The problem is that when $i = count($userVars), $i has surpassed the position of the last time, thus causing it to return as being empty.
Basically, just remove the '=' from $i <= count($userVars)
-- Kyle Gibson admin(at)frozenonline.com http://www.frozenonline.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

