PHP Code:
            $Text "";
            
$Font "tahoma.ttf";
            
$FontSize "10";
            
            
header('Content-type: image/png');
            
            
$Image imagecreatetruecolor(600600);
            
            
$White imagecolorallocate($Image255255255);
            
$Black imagecolorallocate($Image000);
            
            
imagecolortransparent($Image$White);
            
imagefilledrectangle($Image00600600$White);
            
            
$TextBox imagettftext($Image$FontSize0010$Black$Font$Text);
            
            
$NewImage imagecreatetruecolor($TextBox[2] , $TextBox[3]);
            
            
$White imagecolorallocate($NewImage255255255);
            
$Black imagecolorallocate($NewImage000);
            
            
imagecolortransparent($NewImage$White);
            
imagefilledrectangle($NewImage00$TextBox[2], $TextBox[3], $White);
            
            
imagecopymerge($NewImage$Image0000$TextBox[2], $TextBox[3], 100);
            
            
imagepng($NewImage);
            
imagedestroy($NewImage);