Jump to content

Break up a string


Lempke
 Share

Recommended Posts

I want to breakup a string into different variables

Say a strings contains 4 words "This is a text"

Then count the words and than assign the words to a variable.

$result1=This

$result2=is

$result3=a

$result4=text

Is this possible??? And how ??

Link to comment
Share on other sites

Ahhh even better. The answer on a silver platter. Who needs the help file...

If this is ment sarcastic, then for your information I use the helpfile all the time. Somehow I must have missed this command.

I only post something when I can't find a solution myself. For a not native English speaking person I sometimes find it difficult to find a solution, or understand the helpfile.

But thx for your help...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...