Home > php教程 > PHP开发 > php面向对象编程之析构方法

php面向对象编程之析构方法

WBOY
Release: 2016-06-07 17:23:30
Original
1295 people have browsed it

前面我们知道了什么叫构造方法。与构造方法对应的就是析构方法,析构方法允许在销毁一个类之前执行的一些操作或完成一些功能,比如说关闭文件、释放结果集等。析构方法是PHP5才引进的新内容。

析造方法的声明格式与构造方法”

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template