On Sun, 2009-04-26 at 14:49 +0100, Ashley Sheridan wrote: > On Sun, 2009-04-26 at 09:41 -0400, tedd wrote: > > At 1:40 PM -0400 4/25/09, Andrew Hucks wrote: > > >If I have something like $string = '"hello" there'; (the word hello is > > >in double quotes, if you can't see it), how would I output it as > > >something like <font color=color>"hello"</font> there. > > > > Arrggg. > > > > Don't use: "<font color=color>"hello"</font>" > > > > The font tag is dead and embedded styling should moved to css. > > > > There are lot's of ways to do this, here's one: > > > > <span class="red"><?php echo('hello'); ?></span><?php echo(' there'); ?> > > > > You might also check out first-child in css. That way you can make > > "hello" in red and "there" in whatever the element color is in one > > statement. > > > > Cheers, > > > > tedd > > > > > > -- > > ------- > > http://sperling.com http://ancientstones.com http://earthstones.com > > > I'd go further on that and say don't call your class 'red', as it > doesn't do anything for semantic code, but that's just me trolling ;) I was about to say the same thing *lol*. tis true though, the class should be "doubleQuoted" or something similar. What happens when they decide it should be blue? span.red { color: blue; } Uh huh, uh huh, uh huh :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php