PHP-Find-Date-in-String:使用正则表达式在字符串中查找日期的函数

时间:2021-05-06 14:36:24
【文件属性】:
文件名称:PHP-Find-Date-in-String:使用正则表达式在字符串中查找日期的函数
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-06 14:36:24
PHP 在字符串中查找日期 使用正则表达式在字符串中查找日期的函数 用法 $string = "This building was cleaned on the 8th of October 2006 after a huge storm." $date = find_date( $string ); // Return: array( 'day' => 08, 'month' => 10, 'year' => 2006 ); 其他例子: 2012年1月1日将返回> 2012年1月1日 30-12-11将返回> 30-12-2011 1985年1月2日返回> 1985年1月2日 10.12.1850将返回> 10-12-1850 5 12 85将返回> 1985/05/12 2012年10月5日将返回> 2012年10月10日 1985年5月5日返回> 1985年5月5日 81年3月
【文件预览】:
PHP-Find-Date-in-String-master
----function.find_date.php(5KB)
----README.md(792B)

网友评论