Home  >  Article  >  Backend Development  >  用php,怎么把html部分定义在一个方法中?然后怎么调用呢?

用php,怎么把html部分定义在一个方法中?然后怎么调用呢?

WBOY
WBOYOriginal
2016-06-02 11:32:29919browse

php

刚接触php,把基础都看了一遍,但在项目中遇到这样的问题还是不知道怎么解决?我想把html定义在一个方法中,用php对html及css的样式进行拼接,使之更灵活,然后在前台index.php页面展示出来,具体该怎么做呢?或者有哪些教程或项目代码可以参照呢?

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