How to create an array of a group of items inside an HTML form?

Submitted by: Muhammad
We can create input fields with same name for "name" attribute with squire bracket at the end of the name of the name attribute, It passes data as an array to PHP.
For instance :

<input name="MyArray[]" />
<input name="MyArray[]" />
<input name="MyArray[]" />
<input name="MyArray[]" />
Submitted by: Muhammad

Read Online Sr. PHP Programmer Job Interview Questions And Answers