-4
我收到此錯誤:解析錯誤:語法錯誤,意想不到的T_STRING在/Applications/XAMPP/xamppfiles/htdocs/core/functions/users.php第8行解析錯誤:語法錯誤,意想不到的T_STRING
的即時得到一個錯誤的代碼是:
function recover($mode, $email) {
$mode = sanitize($mode);
$email = sanitize($email);
$user_data = user_data(user_id_from_email($email), 'first_name', 'username');
if ($mode == 'username') {
email($email, 'Your username', 'Hello " . $user_data['first_name'] . ", \n\n Your username is: " . $user_data['username'] . " ');
} elseif ($mode == 'password') {
$generated_password = substr(md5(rand(999, 999999)), 0, 8);
die($generated_password);
}
}
我該如何解決這個問題? 在此先感謝
可能是你的'email()'行中的'''和'''混淆了(''Hel lo「文本塊 –
是啊!謝謝!這是問題:)) –