0

hi all,
I want to know that how can i change the font size of the output in php.
suppose this is the snippet
echo 'y'
echo '$ans'
where i want to echo the value stored in variable ans by changing the font size to 12px.so how can i change the font size of ans?
please help!!!

3
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by maunica
0

Try this

$ans = "<font face=verdana size=2><b>Some Text</b></font>";

echo $ans;

or

echo "<font face=verdana size=2><b>";
echo $ans;
echo "</font></b>";

0

Hey thank you sooo much..the snippet worked out very well..thanks for solving my problem..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.