Function __global->split_street_address

Definitions

sources/ecommerce.php

  • Split a linebreak-separated street address into individual parts.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$compound_street_address string required parameter N/A N/A Linebreak-separated street address
$num_parts integer required parameter N/A N/A Number of parts to split into (the last will have comma-separated parts of whatever is remaining)
$find_company_name boolean False N/A N/A The first part will be for a company name, which we'll try and detect intelligently but will be blank if we're not sure

Return

  • Parts
  • Type: array
  • Set: N/A
  • Range: N/A