Home > Backend Development > PHP Tutorial > Under what circumstances will php variables be destroyed?

Under what circumstances will php variables be destroyed?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-04 09:20:32
Original
1224 people have browsed it

For example, the function method will be destroyed after execution. What else are there?

Reply content:

For example, the function method will be destroyed after execution. What else are there?

php uses reference counting to perform garbage collection. It is automatically triggered when certain conditions are met, or it can be triggered manually. Of course, you can also disable garbage collection, because the request will be cleaned up after the request is completed.

For garbage collection, you can read the manual: http://php.net/manual/zh/feat...

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template