PHPverse 2025

Voting

: min(six, seven)?
(Example: nine)

The Note You're Voting On

Claude D.
9 years ago
Caution should be observed with imagedestroy(); copying your reference variable over to another variable will cause imagedestroy to destroy both at once.

Eg.:

$a = imagecreate(...);
$b = $a;
imagedestroy($a);

While you'd think $b still contains your image, it doesn't. Both $a and $b are destroyed.

<< Back to user notes page

To Top