PHP date_parse_from_format() 函数
PHP 教程
· 2019-01-23 21:43:01
实例
根据指定的格式返回一个包含指定日期信息的关联数组:
<?php
print_r(date_parse_from_format("mmddyyyy","05122013"));
?>
print_r(date_parse_from_format("mmddyyyy","05122013"));
?>
定义和用法
date_parse_from_format() 函数根据指定的格式返回一个包含指定日期信息的关联数组。
语法
date_parse_from_format(format,date);
| 参数 | 描述 |
|---|---|
| format | 必需。规定格式(格式由 date_create_from_format() 接受)。 |
| date | 必需。一个指定日期的字符串。 |
技术细节
| 返回值: | 如果成功则返回包含指定日期信息的关联数组。 |
|---|---|
| PHP 版本: | 5.3+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Developing Large Web Applications
Kyle Loudon / Yahoo Press / 2010-3-15 / USD 34.99
As web applications grow, so do the challenges. These applications need to live up to demanding performance requirements, and be reliable around the clock every day of the year. And they need to withs......一起来看看 《Developing Large Web Applications》 这本书的介绍吧!