php method to set the font: First create a PHP sample file; then wrap the code into a SPAN or DIV tag, and apply some CSS styles to it to change the color and size of the font.
The operating environment of this article: Windows 7 system, PHP version 5.6, DELL G3 computer.
How do I change the color and font size of my PHP?
I've been looking for ways to change the size and font of the PHP code output, but can't find a way that doesn't cause errors. I want all the following php code to appear white and enlarged:
something"; } ?>
It would be great if someone could help me achieve this. So far I've tried font color and color span with no success.
Implementation method:
Wrap the code into SPAN or DIV tags and apply some CSS styles to it.
For example:
Welcome ' . $_SESSION['something'] . ', something'; } ?>
Recommended: "PHP Video Tutorial"
The above is the detailed content of How to set font in php. For more information, please follow other related articles on the PHP Chinese website!