How to make text stored in a function bold while displaying | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make text stored in a function bold while displaying

<? php $row='hello' ; echo "hello". $row; ? > in this I want $row value in bold how to do it

2nd Feb 2019, 7:45 AM
deeraj2
deeraj2 - avatar
4 Answers
+ 4
<?php $row='hello'; echo "hello<b>". $row ."</b>"; ?>
2nd Feb 2019, 9:12 AM
Anna
Anna - avatar
+ 2
Using <b></b> tags surrounding the text
2nd Feb 2019, 7:59 AM
Maneren
Maneren - avatar
+ 1
Thanku very much Anna
2nd Feb 2019, 9:22 AM
deeraj2
deeraj2 - avatar
0
If I write echo "hello". <b>$row</b>; Syntax error unexpected '<' is the error I got
2nd Feb 2019, 8:35 AM
deeraj2
deeraj2 - avatar