the dot is just appending it to itself, just like:
$query = "select * from table where";
$query .= " field = whatever";
$query .= "and anotherfield = whatever";
etc....
and sizeof is just an alias of count (used in the same way)
and the [$i] is just so you can loop thru the array