2017-06-12 118 views
-1

一個字符串我有這樣的錯誤在我的錯誤日誌:PHP致命錯誤:函數名必須是錯誤

PHP Fatal error: Function name must be a string in /home2/x7w7i0o6/public_html/admin/mail.php on line 41 

這是從線41代碼:

if ($input->p['receiverlist'] == "single") { 
    $userid = getuserid($input->pc['username']); 

    if ($userid == 0) { 
     $serveranswer(0, "Username <strong>" . $input->pc['username'] . "</strong> was not found"); 
    } 

是什麼問題因爲郵件不工作。謝謝

回答

4

不要把$放在函數名前面(除非你想要)。

$serveranswer(0, "Username <strong>" . $input->pc['username'] . "</strong> was not found"); 

應該是:

serveranswer(0, "Username <strong>" . $input->pc['username'] . "</strong> was not found");