Ninjakreborn Posted August 3, 2006 Share Posted August 3, 2006 what was that function that let you cut up a string based on a character.It's not substr()like if you hadwhatever.phpwith the function I am thinking about you can specify the . symbolthen it put's it into an array with 3 values.it would have whatever.phpin 0, 1, 2 for an array instead of together so you can work with the individual parts? Quote Link to comment https://forums.phpfreaks.com/topic/16445-string-cutting/ Share on other sites More sharing options...
SammyP Posted August 3, 2006 Share Posted August 3, 2006 ExplodeThough it won't return the dot.Sam. Quote Link to comment https://forums.phpfreaks.com/topic/16445-string-cutting/#findComment-68508 Share on other sites More sharing options...
Ninjakreborn Posted August 3, 2006 Author Share Posted August 3, 2006 I was thinking about explode, but I normally use it for other thing, it's worth a try though, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/16445-string-cutting/#findComment-68510 Share on other sites More sharing options...
SammyP Posted August 3, 2006 Share Posted August 3, 2006 I hope you can manage to make it work the way you want it to.Good luck.Sam. Quote Link to comment https://forums.phpfreaks.com/topic/16445-string-cutting/#findComment-68516 Share on other sites More sharing options...
Ninjakreborn Posted August 3, 2006 Author Share Posted August 3, 2006 I didexplode(".", $subcategory);$subcategory = $subcategory[1];that pulls out everything on the right hand side of the period, it allowed me to lay the ground work for the rest of it, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/16445-string-cutting/#findComment-68520 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.