tags:

views:

64

answers:

1

given a php variable

$a="<b>hello</b>";
echo $a;
//prints <b>hello<b>

But I want it to print hello in bold with the formatting. Please tell me what I should do...

A: 
echo "<b>" . $a . "</b>";

oh, you edited your code. what you have should work.

Orbit