Php GD imagetftbbox(); question.?

Andrew P

New member
$string1 = "text 1";
$string2 = "text 2";
$textbox = imagettfbbox(14, 0, $font, $string);
$textbox[4];
$textbox[5];
imagettftext($canvas, 13, 0, 20, 117, $black, $font, $string1);
imagettftext($canvas, 13, 0, $textbox[4], $textbox[5], $black, $font, $string1);


There is my code. Text 2 is meant to appear after text 1.
But, text 1 appears while text 2 is nowhere to be found.
Any questions regarding this? let me know and i'll add the answers (if I have them) to the "details"
 
Back
Top