Can you please let me know how I can Strikethrough a generated text on captcha image in PHP? I have a code to create text on an image as below
<?php
$img = imagecreatetruecolor(200, 200);
$bgColor = imagecolorallocate($img, 255, 255, 255);
$netColor = imagecolorallocate($img, 185, 185, 185);
$txtColor = imagecolorallocate($img, 0, 0, 0);
imagefill($img, 0, 0, $bgColor);
imagettftext($img, 22, 0, 50 ,45, $txtColor,"Bedizen.ttf","Expert" );
header("Content-type:image/png");
imagepng($img);
imagedestroy($img);
?>
and I would like to make the text like Strikethrough. i know one way is adding a line on the image but just wondering if we can add style to the text in PHP or not?
Thanks for your time and comments.