PHP timezone_location_get() 函数

PHP 教程 · 2019-01-24 10:27:19

实例

返回指定时区的位置信息:

<?php
$tz=timezone_open("Asia/Taipei");
echo timezone_location_get($tz);
?>

定义和用法

timezone_location_get() 返回指定时区的位置信息。

语法

timezone_location_get(object);

参数 描述
object 必需。规定一个由 timezone_open() 返回的 DateTimeZone 对象。

技术细节

返回值: 返回一个包含时区的位置信息的数组。
PHP 版本: 5.3+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Learn Python the Hard Way

Learn Python the Hard Way

Zed Shaw / Example Product Manufacturer / 2011

This is a very beginner book for people who want to learn to code. If you can already code then the book will probably drive you insane. It's intended for people who have no coding chops to build up t......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

MD5 加密
MD5 加密

MD5 加密工具