the_oliver Posted May 30, 2007 Share Posted May 30, 2007 Hello, I was wondering how i would go about taking the first 7 charictors off the beggining of a string? Eg i have "Order #77" and only want the "77" bit. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/53652-solved-trimming-a-string/ Share on other sites More sharing options...
MadTechie Posted May 30, 2007 Share Posted May 30, 2007 substr substr('Order #77', 7, 2); Quote Link to comment https://forums.phpfreaks.com/topic/53652-solved-trimming-a-string/#findComment-265208 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.