seventheyejosh Posted July 6, 2009 Share Posted July 6, 2009 well using str to time, u can make the string a timestamp, no matter what it is saved as, then reformat it at will. look close at what i did there. i parsed the string for the time, changed it to a valid strtotime format ( no _ , / instead) then used strtotime to get a unix timestamp, finally passing it to date() as the time param. So u can make it say may 1 or 05 / 01 or 03:03pm etc etc. go crazy.. its date()!!! Link to comment https://forums.phpfreaks.com/topic/164868-solved-applying-text-styles-to-php/page/2/#findComment-869598 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.