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!!!

Member Avatar for muaazab

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>";

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

sorry i didnt get u!!
Ya i have mysql database

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.