How can CSS be used to control the display of text in PHP output?

To control the display of text in PHP output using CSS, you can wrap the text in HTML elements and apply CSS styles to those elements. This allows you to control the font size, color, alignment, and other text properties easily.

<?php
echo "<div style='font-size: 16px; color: red; text-align: center;'>Hello, World!</div>";
?>