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>"; $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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php