Get the image types supported by this PHP build in PHP
Description
The following code shows how to get the image types supported by this PHP build.
Example
<?php/*from ww w . j a v a 2 s.co m*/
if (imagetypes() & IMG_PNG) {
echo "PNG Support is enabled";
}
?>
The code above generates the following result.