proctk Posted February 22, 2008 Share Posted February 22, 2008 hi how would I get the year for this string 200901 I need to get the first for numbers only I'm thinking this is easy but having a moment Link to comment https://forums.phpfreaks.com/topic/92395-yet-year-from-string/ Share on other sites More sharing options...
mem0ri Posted February 22, 2008 Share Posted February 22, 2008 It is easy...you just need substr($str, 0, 3) Link to comment https://forums.phpfreaks.com/topic/92395-yet-year-from-string/#findComment-473388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.