📅  最后修改于: 2022-03-11 14:57:21.834000             🧑  作者: Mango
//$text = the text you want outputted by imagettftext()
$new_text = wordwrap($text, 20, "
\n");
imagettftext($im, 18, 0, 10, 90, $white, $font, $new_text);