Draw a character vertically in PHP
Description
The following code shows how to draw a character vertically.
Example
<?php/* ww w. j a va 2 s. c om*/
$im = imagecreate(100, 100);
$string = 'Note that the first letter is a N';
$bg = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
// prints a black "Z" on a white background
imagecharup($im, 3, 10, 10, $string, $black);
header('Content-type: image/png');
imagepng($im);
?>
The code above generates the following result.