⊗ppPmBsTg 32 of 447 menu

Working with HTML Tags in PHP

From PHP's point of view, HTML tags are ordinary strings. Let's, for example, use the <b> tag to output bold text:

<?php echo '<b>жирный</b>'; ?>

You can use multiple echo statements:

<?php echo '<b>'; echo 'жирный'; echo '</b>'; ?>

You can use concatenation:

<?php $str = 'жирный'; echo '<b>' . $str . '</b>'; ?>

Or like this:

<?php $str = 'жирный'; $open = '<b>'; $close = '</b>'; echo $open . $str . $close; ?>

Using the <i> tag, output italic text.

Using the <br> tag, output a column of numbers from 1 to 9.

byenru