create_captcha([$data = ''[, $img_path = ''[, $img_url = ''[, $font_path = '']]]])
Parameters:
$data (array) – Array of data for the CAPTCHA
$img_path (string) – Path to create the image in
$img_url (string) – URL to the CAPTCHA image folder
$font_path (string) – Server path to font Returns:
array(‘word’ => $word, ‘time’ => $now, ‘image’ => $img) Return type:
array
Takes an array of information to generate the CAPTCHA as input and creates the image to your specifications