change font color in php?

hatedguilt

Baseband Member
Messages
43
how do you change font color in php? i tryed this:

PHP:
echo "\<font color\=\"red\">;
PHP:
echo "hello";
PHP:
echo "\<\/font>;
 
Why do you need to do it in php? Why not just close the php tag, change the font color in html, then open the php tag back up? Seems easier, unless you have a specific reason for changing it in php.
 
falcon1 said:
Why do you need to do it in php? Why not just close the php tag, change the font color in html, then open the php tag back up? Seems easier, unless you have a specific reason for changing it in php.
yeah that sounds good :cool:
 
you have escape chars where they arn't needed..
you could have had

<?php
echo "
<font color=\"red\">
";
?>

note that you dno't need the escape chars next to the triangular brackets because they have no special PHP function.
 
Back
Top Bottom