Home  >  Article  >  Backend Development  >  php中的静态方法与实例方法有什么区别?解决方法

php中的静态方法与实例方法有什么区别?解决方法

WBOY
WBOYOriginal
2016-06-13 10:09:11826browse

php中的静态方法与实例方法有什么区别?
不是使用方法的区别,而是性能上有没有区别

------解决方案--------------------
应当说静态方法要比实例化更节省内存
------解决方案--------------------
静态的话打开不要再次调用数据库和服务器内存和CPU
你说的实例是动态访问。那样就要数据库函数等读取在生成出对应的静态代码。
在搜索引擎方面都说静态有利于搜索一些,但是感觉差距不是很大很大,只能说如果是静态最好使用静态生成。
------解决方案--------------------
静态更快

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