Re: Takeing a string and spliting it up.

From: Date: Sat, 25 Nov 2000 03:52:34 +0000
Subject: Re: Takeing a string and spliting it up.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27085@lists.php.net to get a copy of this message
Question: from the beginning up the the line starting with <TD once per line you have all your nice weapons listed, then once per line the amount of the sum you have. Then i can form the few lines src for you Folke -- Folke Ashberg Stage Internet Services GmbH Technical Development folke@fanstage.de folke@fanstage.de | Tel: +49 89 454591-77 | Fax: +49 89 454591-71 Kreillerstr. 21 | 81673 Munich | Germany | www.fanstage.de On Fri, 24 Nov 2000, Ian LeBlanc wrote: > Here is the string... > > <? > script = " > Spies<BR> > Troops<BR> > Jets<BR> > Turrets<BR> > Tanks<BR> > Nuclear Missiles<BR> > Chemical Missiles<BR> > EMD Missiles<BR> > <TD NOWRAP ALIGN=RIGHT><FONT COLOR=#FFEECC SIZE=-1> > 0<BR> > 401,096<BR> > 771,923<BR> > 552,269<BR> > 103,164<BR> > 1<BR> > 3<BR> > 1<BR>"; > ?> > > How could I parse that to get this output (need all the numbers to be in > varibles also) > > Spies: 0 > Troops: 401,096 > Jets: 771,923 > Turrets: 552,269 > Tanks: 103,164 > Nuclear Missiles: 1 > Chemical Missiles: 3 > EMD Missiles: 1 > > >

« previous php.general (#27085) next »