开发者

html tag in php variables

given a php variable

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

But I want it to pr开发者_运维百科int hello in bold with the formatting. Please tell me what I should do...


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

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜