Putting comma(,) at end of array.Is it a convention?

Viewed 4517

Sometimes I see arrays like the following:


array('item1' => array(
         'subitem1',
         'subitem2',
      )

Why a comma is added at end of array wheras there is not any element after submitem2?

2 Answers
Related