Quittio next API

InternationalAddressFormatter
in package
implements AddressFormatter

FinalYes

Fallback address format: street lines, "postcode city", subdivision and, for foreign recipients, the country name in upper case as the last line.

Table of Contents

Interfaces

AddressFormatter
Formats postal addresses according to the conventions of a country.

Methods

format()  : array<int, string>

Methods

format()

public format(Address $address[, array<string|int, mixed> $nameLines = [] ][, string|null $senderCountry = null ][, string|null $locale = null ]) : array<int, string>
Parameters
$address : Address
$nameLines : array<string|int, mixed> = []

recipient lines placed before the address

$senderCountry : string|null = null
$locale : string|null = null
Return values
array<int, string>
On this page

Search results