Function asa2_i18n_get_user_data
This function retrieves detailed information about the user’s origin country.
Example:
$userOrigin = asa2_i18n_get_user_data(); echo '<pre>'; print_r($userOrigin); // output: Array ( [continent] => Array ( [code] => EU [geoname_id] => 6255148 [names] => Array ( [de] => Europa [en] => Europe [es] => Europa [fr] => Europe [ja] => ヨーロッパ [pt-BR] => Europa [ru] => Европа [zh-CN] => 欧洲 ) ) [country] => Array ( [geoname_id] => 2921044 [iso_code] => DE [names] => Array ( [de] => Deutschland [en] => Germany [es] => Alemania [fr] => Allemagne [ja] => ドイツ連邦共和国 [pt-BR] => Alemanha [ru] => Германия [zh-CN] => 德国 ) ) [registered_country] => Array ( [geoname_id] => 2921044 [iso_code] => DE [names] => Array ( [de] => Deutschland [en] => Germany [es] => Alemania [fr] => Allemagne [ja] => ドイツ連邦共和国 [pt-BR] => Alemanha [ru] => Германия [zh-CN] => 德国 ) ) )
Return value summary
array|null
|
array|null |