Jump to content

CHOPPING LONG STRING TO SMALL POSSIBLE ONES(STRINGS)


bobtutos

Recommended Posts

Hi everybody!

I would like to ask for your help if it possible, I have a long sting and I want to chop it to small pieces. My string is:-

 

$longstr = “Str1.htmlstr2.htmlstr3.html”;

 

And I want the result to be like;

 

$firstchoppedpiece = “Str1.html”;

 

$secondchoppedpiece =”Str2.html”;

 

$thirdchoppedpiece =”Str2.html”;

 

Is it possible? Or is there any PHP function or method to break it into small pieace?

Your replies are greatly appreciated.

Thank very much.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...