PHP Parsing Information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yoda715
    New Member
    • Nov 2006
    • 2

    PHP Parsing Information

    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?
  • yoda715
    New Member
    • Nov 2006
    • 2

    #2
    nevermind, I solved my problem using explode :).

    Comment

    Working...