Re: change the font color of a string variable in PHP

From: Date: Fri, 18 Mar 2005 09:47:16 +0000
Subject: Re: change the font color of a string variable in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211023@lists.php.net to get a copy of this message
On Fri, 18 Mar 2005 09:42:13 +0000 (GMT), babu <garavindbabu@yahoo.co.uk> wrote: > Hi all i am newbie, > > I have a php code like this > > <?php > foreach($_SESSION['history'] as $item) { > $item = str_replace(";","",$item); > > echo "<option >$item</option>"; > //echo "<option>$item</option>"; If I understand your question, you are wanting to change the text colour of an option item... Do this with css classes... Cheers > }//foreach > ?> > > I want to set the color of the srting in $item. > Are there any PHP functions available. > > Thanks > babu. > > Send instant messages to your online friends > http://uk.messenger.yahoo.com >

« previous php.general (#211023) next »