The value of a variable is an array of zero or more values. A
reference to a variable will normally print its 0th (first) value, if
any. Inside a
SQL statement, however, only the
current value is used. This simplifies iterating a list of
values, such as when creating checkboxes for a form (see
here for details).