簡體   English   中英

我簡單的php代碼有什么問題?

[英]What is wrong with my simple php code?

<?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];
    }
}
?>

錯誤:致命錯誤:無法在第12行的/Applications/XAMPP/xamppfiles/htdocs/hash.php中重新聲明hash()

hash()已經是PHP的內置函數。 將函數命名為其他名稱。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM