This example shows how to make circle in php gd.
This example shows how to make circle in php gd.<?php
$text = "RoseindiaRoseindiaRoseindiaRoseindiaRoseindia "; $image = imagecreatetruecolor(400,400);imagefill(
$image,0,0,$white); $red = imagecolorallocate($image,255,0,0);imagettftext(
$image,20,180-($a),200+$xt,200+$yt,$red,"C:/WINNT/Fonts/arial.ttf",$text[$i]);}
header(
"Content-type: image/jpeg");imagejpeg(
$image,"",100);imagedestroy(
$image);?>
After running the program you will get the following output