A collection of form fields that stores form data while handling arrays gracefully
Creates a new FormFields instance
Configuration options for field processing
Add a new key/value pair. The keys with array-like expressions are handled properly.
The field name, can include array notation
The field value
formfields.add('username', 'virk')// arrayformfields.add('username[]', 'virk')formfields.add('username[]', 'nikk')// Indexed keys are ordered properlyformfields.add('username[1]', 'virk')formfields.add('username[0]', 'nikk') Copy
formfields.add('username', 'virk')// arrayformfields.add('username[]', 'virk')formfields.add('username[]', 'nikk')// Indexed keys are ordered properlyformfields.add('username[1]', 'virk')formfields.add('username[0]', 'nikk')
Returns a copy of the form fields
A collection of form fields that stores form data while handling arrays gracefully