PHP | Imagick destroy() Function
Last Updated :
31 Oct, 2019
The Imagick::destroy() function is an inbuilt function in PHP which is used to destroy the Imagick object and free all the resources associated with it. You can’t access your object content once it is destroyed.
Syntax:
bool Imagick::destroy( void )
Parameters: This function does not accept any parameters.
Return Value: This function returns TRUE on success.
Below program illustrates the Imagick::destroy() function in PHP:
Program:
<?php
$imagick = new Imagick(
$imagick ->destroy();
?>
|
Output: Since image distroyed so it will not display any image.
Reference: https://www.php.net/manual/en/imagick.destroy.php
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...