Destroy an image in PHP

Description

The following code shows how to destroy an image.

Example


<?php//from www  . ja  v a  2s . c  om
// create a 100 x 100 image
$im = imagecreatetruecolor(100, 100);

// alter or save the image

// frees image from memory
imagedestroy($im);
?>




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text