- PHP

How to make Bold Text in PHP?

To make a bold text in PHP, just use HTML <b> and </b> tags.

Example 1:

<?php

echo '<b>Bold text</b>';

?>

Output: Bold text

Example 2:

<?php

$myVariable = 'Bold';

echo '<b>' . $myVariable . ' text with variable</b>';

?>

Output: Bold text with variable