Re: [php] explode that :) !

From: Date: Sun, 17 Aug 2003 07:33:56 +0000
Subject: Re: [php] explode that :) !
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159829@lists.php.net to get a copy of this message
Hi, Sunday, August 17, 2003, 12:58:23 PM, you wrote: JTJ> $P1OC1Q1 = "1¶some text or some comment"; JTJ> echo "<tr><td>Your score is: </td><td>"; JTJ> $score=split($P1OC1Q1,"¶"); echo $score[0]."</td></tr>\n"; JTJ> Do I have to go through all that to get score[0] ? JTJ> John if the number is always first and an integer: echo "<tr><td>Your score is: </td><td>".intval($P1OC1Q1)."</td></tr>\n"; -- regards, Tom

« previous php.general (#159829) next »