What functions can be used in PHP to determine if gdlib is installed?
To determine if gdlib is installed in PHP, you can use the `function_exists()` function to check if specific functions provided by the gdlib extension are available. Some common functions to check for include `imagecreatefromjpeg()`, `imagecreatefrompng()`, and `imagecreatefromgif()`. If these functions exist, it indicates that gdlib is installed and available for use in your PHP environment.
if (function_exists('imagecreatefromjpeg') && function_exists('imagecreatefrompng') && function_exists('imagecreatefromgif')) {
echo 'gdlib is installed';
} else {
echo 'gdlib is not installed';
}