How can CSS be applied to customize the appearance of text output in PHP, specifically when using echo statements?

To customize the appearance of text output in PHP using CSS with echo statements, you can simply add inline CSS styles to the echoed text. This allows you to control the font size, color, style, and other text properties directly within the PHP code.

<?php
echo '<p style="font-size: 16px; color: #333; font-family: Arial;">This text will be styled with CSS</p>';
?>