= explode(' ', $msg);
$out = "";
foreach($arr as $word){
$tmp_string = $out.' '.$word;
$textbox = imagettfbbox(14, 0, $font, $tmp_string);
if($textbox[2] > 550)$out.=($out==""?"":"\n".($backHeight +10)).$word;
else $out.=($out==""?"":" ").$word;
}
по рукам тебе хуярить за такое
Обсуждают сегодня