Re: [php] explode that :) !

From: Date: Sun, 17 Aug 2003 03:48:16 +0000
Subject: Re: [php] explode that :) !
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-159819@lists.php.net to get a copy of this message
Kind of hoping to do shorten it like this: echo "<tr><td>Your score is: </td><td>".$score[0]=split($P1OC1Q1,"¶")."</td></tr>\n"; No such hopes? > Looks like a really simple piece of code except for the cryptic variable names. > > >$P1OC1Q1 = "1¶some text or some comment"; > >echo "<tr><td>Your score is: </td><td>"; > >$score=split($P1OC1Q1,"¶"); echo $score[0]."</td></tr>\n"; > > > >Do I have to go through all that to get score[0] ?

« previous php.general (#159819) next »