Definition: Image String is used to add a string (text) to an image in PHP that we are creating with the GD Library.
It's parameters are:
- The image we are working with
- The font as a number, 1-5.
- Starting X ordinate
- Starting Y ordinate
- The string itself
- The color
<?php
header ("Content-type: image/png");
$handle = ImageCreate (130, 50) or die ("Cannot Create image");
$bg_color = ImageColorAllocate ($handle, 255, 0, 0);
$txt_color = ImageColorAllocate ($handle, 0, 0, 0);
ImageString ($handle, 5, 5, 18, "PHP.About.com", $txt_color);
ImagePng ($handle);
?>

