且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从php 5.2中的字符串中提取日期和时间?

更新时间:2023-02-21 18:51:29

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..