$chiffre = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten');
$operators = array("+", "-");
$operator = $operators[array_rand($operators)];
$nb1 = rand(1, 5);//10
$nb2 = ($operator === '-') ? mt_rand(1, $nb1) : mt_rand(1, 5);// on évite les résultats négatifs en cas de soustraction
eval('$captcha = strval('.$nb1.$operator.$nb2.');');
$captcha_hash = hash('sha256', $captcha.$GLOBALS['pub_hash']);
// On change le signe "-" moins de calcul en "−" lisible en accessibilité
?>