Справочники, инструменты, документация

PHP: Email на картинке

Cкрипт, который выводит email на картинке и создаёт эту картинку с учётом длины email. Что-то типа простой защиты от сборщиков емейлов.
function protectmail($email){
  for($i=0,$w=0; $i < strlen($email); $i++,$w+=15){
    $arr[$i] = substr($email, $i, 1);
    $width = $w;
  }
  $img = imagecreate($width, 20);
  imagecolorallocate($img, mt_rand(230,255), mt_rand(230,255), mt_rand(230,255));
  $color = imagecolorallocate ($img, '', '', '');
  for($i=0,$a=0; $i < strlen($email); $i++){
    $string = imagecolorallocate($img, rand(0,250), rand(0,250), rand(0,250));
    imagestring($img, 3, $a+=mt_rand(8,15), mt_rand(0,5), $arr[$i], $string);
  }  
  return imagegif($img);
}

header('Content-type: image/gif');
echo protectmail('admin@mail.ru');