Function __global->get_formatted_address

Definitions

sources/ecommerce.php

  • Get a formatted address.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$address_parts array No No required parameter N/A N/A A map of address parts (see comment inside function for structure)

Returns

  • Formatted address
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a formatted address.
 *
 * @param  array $address_parts A map of address parts (see comment inside function for structure)
 * @return string Formatted address
 */

function get_formatted_address(array $address_parts) : string