Can someone please tell me how to modify text from within a php script.
For instance, how can I make the following text centred and red
<?php echo "how can i make this red and centred?"; ?>
Use HTML
echo "<center><font color=\"red\">how can i make this red and centred?</font></center>";
Why not use CSS(besides, font and center tag are deprecated):
echo '<div style="text-align: center; color: red;">how can i make this red and centered?</div>';
You ask a simple question, you get a simple answer.
Frederick wrote:You ask a simple question, you get a simple answer.
Yes! but an incorrect simple answer.