heh does the job :)

<?php
        
        $no=("1+2+3");
        $number=explode("+", $no);
        
        foreach ($number as $key=>$value){
                if ($value==1) {
                        print '<span style="color:red;">'.$value.'</span>';

                }
                
        }
        
?>

-----Original Message-----
From: Michael P. Carel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 5:54 AM
To: 
Subject: exploding strings


Hi to all,

I have a problem regarding  exploding string. I want to explode string
sepated by "+" sign, but i want it also the first variable in the array be
distinc in terms of collor or whatever when viewed in the page.

ex.

$no=("1+2+3");
$number=explode("+", $no);

how could i echo $no with the first no. "1"  be in colored.

Any idea. thanx in advance



Regards,

mike


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to