Hey guys,
I am currently stumped on a problem. I am looking for a way to easily grab text out of a string. Example, I have a string that looks like this:
aaa bbbb cccc dddd
What I need to do is be able to easily grab the data from the string. There are no delimiters, other than spaces. Basically I want to be able to assign the group 'aaa' to one variable, and then be able to move on and grab the data 'bbbb' into another variable, etc.
Ive tried using strpos to locate the data inbetween the spaces, but that is not working. Any ideas?
I am currently stumped on a problem. I am looking for a way to easily grab text out of a string. Example, I have a string that looks like this:
aaa bbbb cccc dddd
What I need to do is be able to easily grab the data from the string. There are no delimiters, other than spaces. Basically I want to be able to assign the group 'aaa' to one variable, and then be able to move on and grab the data 'bbbb' into another variable, etc.
Ive tried using strpos to locate the data inbetween the spaces, but that is not working. Any ideas?
Comment