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? 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? 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 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
Archived
This topic is now archived and is closed to further replies.