XpertWorlock Posted November 29, 2008 Share Posted November 29, 2008 11/29/2008 How would I be able to spit out $month, $day, $year variables from the above? My idea was to get string until it hits a '/', but I can't find the function for that and also how would I get the '29'? Any help is appreciated, especially if you have a better way of doing it Link to comment https://forums.phpfreaks.com/topic/134792-solved-get-characters-to-certain-point/ Share on other sites More sharing options...
trq Posted November 29, 2008 Share Posted November 29, 2008 echo date('d', strtotime('11/29/2008')); Link to comment https://forums.phpfreaks.com/topic/134792-solved-get-characters-to-certain-point/#findComment-701911 Share on other sites More sharing options...
XpertWorlock Posted November 29, 2008 Author Share Posted November 29, 2008 I couldn't have asked for anything better Thanks Link to comment https://forums.phpfreaks.com/topic/134792-solved-get-characters-to-certain-point/#findComment-701923 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.