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 Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.