DateTimeZone::getLocationtimezone_location_getタイムゾーンの位置情報を返す 説明オブジェクト指向型
public arrayfalse DateTimeZone::getLocation()
手続き型 arrayfalse timezone_location_get(DateTimeZone
$object)タイムゾーンの位置情報 (国コード、緯度/経度、コメント) を返します。 パラメータ
戻り値
タイムゾーンについての位置情報を含む配列を返します。失敗した場合に 例
例1 DateTimeZone::getLocation の例 上の例の出力は以下となります。
Array
(
[country_code] => ID
[latitude] => -6.16667
[longitude] => 106.8
[comments] => Java, Sumatra
)
Array
(
[country_code] => ID
[latitude] => -6.16667
[longitude] => 106.8
[comments] => Java, Sumatra
)
参考
|