函数名称:gd_info()
函数描述:gd_info() 函数用于获取当前 PHP 版本中 GD 图像库的信息。
用法:
<?php
$info = gd_info();
// 输出 GD 图像库的信息
foreach ($info as $key => $value) {
echo $key . ": " . $value . "<br>";
}
?>
参数:无
返回值:返回一个关联数组,包含了 GD 图像库的信息。
示例:
<?php
$info = gd_info();
// 输出 GD 图像库的信息
foreach ($info as $key => $value) {
echo $key . ": " . $value . "<br>";
}
?>
示例输出:
GD Version: bundled (2.1.0 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPEG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:
注意事项: