I am very new to php so I apologize for the seemingly simple question. I need to parse a line of text into different variables. More specifically, I need to parse many lines of text in different arrays. The line of text would resemble the following
timeStamp UserName* garbage text Number x item*
timeStamp UserName* garbage text Number x item*
timeStamp UserName* garbage text Number x item*
both userName and item could contain spaces. I would assume the best way to go about this would be 4 different arrays?
actual data would look like the following
03:12:34 mhopkins321 has acquired 5 x bottles of water
09:38:01 Nick Smith has acquired 100 x pennies
23:22:59 Fancy Frank has acquired 15684 x artichoke hearts
So I would assume the arrays would be
$timeStamp $userName $amount $items
03:12:34 mhopkins321 5 bottles of water
09:38:01 Nick Smith 100 pennies
23:22:59 Fancy Frank 15684 artichoke hearts