回答編集履歴
1
訂正: str_replace\(\)の引数の順序
test
CHANGED
@@ -69,7 +69,7 @@
|
|
69
69
|
|
70
70
|
```lang-php
|
71
71
|
/* 修正後 */
|
72
|
-
$to_name = str_replace(str_replace(
|
72
|
+
$to_name = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $to));
|
73
73
|
$to = '"' . $to_name . '" <' . $to . '>';
|
74
74
|
|
75
75
|
$from = $from_name . ' <' . $from_email . '>';
|