Adding Text

The return value is an array with 8 integers, corresponding in order, the lower-left corner, the lower-right corner, the upper-right corner, and the upper-left corner of the bounding box.
<?php

$rd=imagecreatefromjpeg('testing.jpg');
var_dump(
   imagettftext($rd,
                      15,   // font size
                      20,   // anticlockwise angle
                      100,  // x
                      100,  // y
                       imagecolorallocate($rd, 255, 0, 0),  // color
                      'CURLZ___.ttf',     // font file
                      'Hello World!!'));  // text
imagejpeg($rd,'testing10.jpg');

?>