更新时间:2023-01-01 22:00:14
使用 function_exists :
function_exists
if (function_exists('imagettftext')) { imagettftext(); } else { // do other function }
希望有帮助.
检测服务器上是否安装了FreeType PHP扩展