PHPverse 2025

Voting

: max(seven, four)?
(Example: nine)

The Note You're Voting On

Docey
18 years ago
When the script stop PHP will automatic destory ANY
resources, this goes for aswell for images, thus in the
case the use clicks the stop button, php will automatic
clear the resource.

thus imagedestroy is used to clear the memory BEFORE
the script ends. this is usefull to keep memory usage
DURING the script to an acceptable level.

hope this clear somethings up.

<< Back to user notes page

To Top