<?php
function hash($val, $key){
$chrs = explode($val, "");
for($c=0; $c<count($chrs); $c++){
$ascii[$c]=ord($chrs[$c]);
}
$digi = explode($key,"");
for($c=0; $c<count($digi); $c++){
$nascii[$c]= $ascii[$c]+$digi[$c];
$fhash[$c] = $nascii[$c];
}
}
?>
错误:致命错误:无法重新声明hash() 第12行/Applications/XAMPP/xamppfiles/htdocs/hash.php