What is php destructing
This article mainly explains "what is php deconstruction". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is php deconstruction".
Php destructor refers to the destructor "_ _ destruct ()"; destructor is a concept introduced by PHP5; destructor executes when all references to an object are deleted or when the object is explicitly destroyed.
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
Destructor function
_ _ destruct (): void
PHP 5 introduces the concept of destructors, similar to other object-oriented languages such as C++. The destructor executes when all references to an object are deleted or when the object is explicitly destroyed.
Destructor example