Huge string to parse somehow??
Posted: Fri May 16, 2003 4:20 am
Hi, I really need some help. I have checked out the manual on php.net but its really not helping me. If anyone can lend a hand I'd appreciate it.
I am pulling some info from another website (with permission to do so) and loading it into a string that ends up looking like this:
Where "visitor" and "home" are different team names of different lengths. And blah is the location of the game. The string also includes all of the whitespace shown. The way I am doing it now, I just echo the string inside <pre> tags which is not very stylish. I would like to assign variables for the date, time, team, and location. Does anyone have any idea how I can accomplish this?
I am pulling some info from another website (with permission to do so) and loading it into a string that ends up looking like this:
Code: Select all
03/08/03 1300 Visitor...... 21 Home...... 14 (at Blah)
03/15/03 0900 Visitor...... 15 Home...... 1 (at Blah)
03/22/03 1300 Visitor...... 14 Home...... 11 (at Blah)
04/05/03 1400 Visitor...... 20 Home...... 4 (at Blah)
04/12/03 0900 Visitor...... 25 Home...... 0 (at Blah)
04/19/03 1300 Visitor...... 9 Home...... 0 (at Blah)
04/26/03 1300 Visitor...... 12 Home...... 7 (at Blah)
05/03/03 0900 Visitor...... vs Home...... (at Blah)
05/10/03 0900 Visitor...... 17 Home...... 10 (at Blah)
05/17/03 1300 Visitor...... vs Home...... (at Blah)
05/31/03 1300 Visitor...... vs Home...... (at Blah)
06/07/03 1300 Visitor...... vs Home...... (at Blah)
06/14/03 0900 Visitor...... vs Home...... (at Blah)
06/14/03 1300 Visitor...... vs Home...... (at Blah)
06/21/03 0900 Visitor...... vs Home...... (at Blah)
06/28/03 0900 Visitor...... vs Home...... (at Blah)
07/12/03 1300 Visitor...... vs Home...... (at Blah)