Home  >  Article  >  Backend Development  >  php里面如何定义方法 使得每个前台页面都能调用到

php里面如何定义方法 使得每个前台页面都能调用到

WBOY
WBOYOriginal
2016-06-13 10:46:43961browse

php里面怎么定义方法 使得每个前台页面都能调用到
php里面怎么定义方法 使得每个前台页面都能调用到

然后在别的页面怎么调用和传参数

------解决方案--------------------
写在一个config.php 中 ,其他页面只需 include 进来就可以了.

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