PHP 4, PHP 5, PHP 7, PHP 8
imagedestroy - Destroy an image
imagedestroy( GdImage$image ): bool
This function has no effect. Prior to PHP 8.0.0, this function was used to close the resource.
Prior to PHP 8.0.0, imagedestroy freed any memory associated with image image.
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
Returns true on success or false on failure.
|8.0.0||This function is a NOP now.|
|8.0.0||image expects a GdImage instance now; previously, a resource was expected.|
Show all examples for imagedestroy