你好,我使用的是str_replace,但在我使用額外的空間」,因此它不工作。我該如何使用額外的「str_replace函數裏面str_replace和使用額外的「
$errorAlerts = str_replace("Password found in list of "most common passwords", please choose a more secure password.", "{$record['c_pw']}", $errorsAndAlerts);
感謝您的輸入
'str_replace('在最常見密碼列表中找到的密碼,請選擇一個更安全的密碼。',「{$ record ['c_pw']}」,$ errorsAndAlerts);'? – Albzi
使用周圍的單引號而不是雙引號,或者[escape escape your string](https://stackoverflow.com/questions/7999148/escaping-quotation-marks-in-php) – hassan
去學習一些基礎知識:http:// php .net/manual/zh/language.types.string.php – CBroe