我有这个功能:
print_r(geoip_record_by_name('php.net'));
这导致:
Array (
[continent_code] => NA
[country_code] => US
[country_code3] => USA
[country_name] => United States
[region] => CA [city] => Sunnyvale
[postal_code] => 94089
[latitude] => 37.424900054932
[longitude] => -122.0074005127
[dma_code] => 807
[area_code] => 408
)
我想检索区域值,但是
geoip_record_by_name('php.net')['region'];
给出空白结果。