Home  >  Article  >  Backend Development  >  Can css be written in php?

Can css be written in php?

青灯夜游
青灯夜游Original
2019-10-15 15:51:466772browse

Can css be written in php?

Can I write css in php?

css can be written in php. In PHP, HTML, CSS and JavaScript codes are treated as strings and then parsed in the browser.

Introduce css styles into PHP scripts. The code example is as follows:

Hello!

'; ?>

Output:

Can css be written in php?

You can also introduce external CSS files.

';
?>

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of Can css be written in php?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn