Do you name your arrays using plural or singular in PHP?
I use the plural form. Then I can do something like:
$name = $names[1];
Name should always convey as much information as possible in case a reader is not familiar with the type declaration. An array or collection should therefore be named in the plural.
I personally find $name[1] to be misleading, since it means "the 1st element of name" which doesn't make English sense.
I usually give it something on the end like list so it would be
nameList
Otherwise, I make it plural.