如何从php 5.2中的字符串中提取日期和时间? [英] How to extract date and time from string in php 5.2?
本文介绍了如何从php 5.2中的字符串中提取日期和时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友
如何从php中的字符串中提取日期和时间?
例如,
输入如
$ str =原始数据24/07/2012 on 11:15;
输出类似产生
24/07 / 2012 11:15
请帮帮我朋友..
解决方案
< blockquote> str =原始数据24/07/2012 on 11:15;
输出像生产
24/07/2012 11:15
请帮帮我朋友..
Dear Friend
How to extract date and time from string in php?
For Example,
Input like
$str = "Raw Data 24/07/2012 on 11:15";
Output like produced
24/07/2012 11:15
Please Help me Friends..
解决方案
str = "Raw Data 24/07/2012 on 11:15";
Output like produced
24/07/2012 11:15
Please Help me Friends..
这篇关于如何从php 5.2中的字符串中提取日期和时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文