DJJQ Posted January 3, 2008 Share Posted January 3, 2008 Hi, I would like some help to create a loop or equiv. that takes a variable and takes the first, lets say 10 letters and put them in a new variable with a new name. How do I do this? Quote Link to comment https://forums.phpfreaks.com/topic/84278-solved-making-x-first-letters-of-a-variable-in-to-a-new-variable/ Share on other sites More sharing options...
adam291086 Posted January 3, 2008 Share Posted January 3, 2008 where is the variable coming from in the first place? Quote Link to comment https://forums.phpfreaks.com/topic/84278-solved-making-x-first-letters-of-a-variable-in-to-a-new-variable/#findComment-429191 Share on other sites More sharing options...
rajivgonsalves Posted January 3, 2008 Share Posted January 3, 2008 you can use the substr function... http://php.net/substr Quote Link to comment https://forums.phpfreaks.com/topic/84278-solved-making-x-first-letters-of-a-variable-in-to-a-new-variable/#findComment-429193 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.