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! 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); Link to comment https://forums.phpfreaks.com/topic/53652-solved-trimming-a-string/#findComment-265208 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.