PHP GD image Character up


 

PHP GD image Character up

This example shows how to up the Image Character in php gd.

This example shows how to up the Image Character in php gd.

<?php

$im = imagecreate(120, 120);

$string = 'This is the text.';

$bg = imagecolorallocate($im, 255, 0, 0);

$black = imagecolorallocate($im, 0, 0, 0);

imagecharup($im, 5, 13, 13, $string, $black);

header('Content-type: image/png');

imagepng($im);

?>

After running the program you will get the following output

Ads