Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

string cutting

Recommended Posts

what was that function that let you cut up a string based on a character.
It's not substr()
like if you had
whatever.php
with the function I am thinking about you can specify the . symbol
then it put's it into an array with 3 values.
it would have
whatever
.
php
in 0, 1, 2 for an array instead of together so you can work with the individual parts?

Share this post


Link to post
Share on other sites
I was thinking about explode, but I normally use it for other thing, it's worth a try though, thanks.

Share this post


Link to post
Share on other sites
I hope you can manage to make it work the way you want it to.

Good luck.

Sam.

Share this post


Link to post
Share on other sites
I did
explode(".", $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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.