PHP Class CommerceGuys\Addressing\AddressFormat\AddressFormatHelper

Show file Open project: commerceguys/addressing Class Usage Examples

Public Methods

Method Description
getGroupedFields ( $format ) : array Gets the list of used fields, grouped by line.

Method Details

getGroupedFields() public static method

Used for generating address forms.
public static getGroupedFields ( $format ) : array
return array An array of address fields grouped by line, in the same order as they appear in the format string. For example: [ [givenName, familyName], [organization], [addressLine1], [addressLine2], [locality, administrativeArea, postalCode] ]