I want to write Hindi text on an image using PHP.
This is my code:
$im = @imagecreate(210, 50);
$background_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 7, 15, 15, utf8_encode("पुलिसवाला आमिर खान..."), $text_color);
ImagePNG($im, 'a.png');
imagedestroy($im);
Can someone help me do this?