PHP timezone_name_get() 函数
PHP 教程
· 2019-01-24 10:57:46
实例
返回时区的名称:
<?php
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
定义和用法
timezone_name_get() 返回时区的名称。
语法
timezone_name_get(object);
| 参数 | 描述 |
|---|---|
| object | 必需。规定一个 DateTimeZone 对象。 |
技术细节
| 返回值: | 从时区列表中返回时区的名称。 |
|---|---|
| PHP 版本: | 5.2+ |
点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html
Refactoring
Martin Fowler、Kent Beck、John Brant、William Opdyke、Don Roberts / Addison-Wesley Professional / 1999-7-8 / USD 64.99
Refactoring is about improving the design of existing code. It is the process of changing a software system in such a way that it does not alter the external behavior of the code, yet improves its int......一起来看看 《Refactoring》 这本书的介绍吧!