PHP date_parse_from_format() 函数
PHP date_parse_from_format() 函数 实例 根据指定的格式返回一个包含指定日期信息的关联数组: <?php print_r(date_parse_from_format("mmddyyyy","05122013")); ?> 定义和用法 date_parse_from_format() 函数根据指定的格式返回一个包含指定日期信息的关联数组。 语法 date_parse_from_format( _format,date);_ 参数 描述 _format_ 必需。规定格式(格式由 [date_create_from_format()](func-date-create-from-format.html) 接受)。 _date_ 必需。一个指定日期的字符串。 技术细节 返回值: 如果成功则返回包含指定日期信息的关联数组。 PHP 版本: 5.3+
PHP date_parse_from_format() 函数
实例
根据指定的格式返回一个包含指定日期信息的关联数组:
<?php print_r(date_parse_from_format("mmddyyyy","05122013")); ?>
定义和用法
date_parse_from_format() 函数根据指定的格式返回一个包含指定日期信息的关联数组。
语法
date_parse_from_format( _format,date);_
| 参数 | 描述 |
|---|---|
| _format_ | 必需。规定格式(格式由 [date_create_from_format()](func-date-create-from-format.html) 接受)。 |
| _date_ | 必需。一个指定日期的字符串。 |
技术细节
| 返回值: | 如果成功则返回包含指定日期信息的关联数组。 |
|---|---|
| PHP 版本: | 5.3+ |
交流与评论