Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はphpを介してフェッチするmysqlに次のテンプレート文字列を持っています。
$ msg="親愛なる$contacts-salutation$ $ contacts-firstname $ $ contacts-lastname $、お誕生日おめでとうございます!!よろしくお願いします。チーム";
$ contacts- __ $を他のmysqlテーブルに存在する変数に置き換えたい。しかし、私はそれを置き換えることはできませんか?
文字列を文字列に置き換えるにはどうすればよいですか?
使用してみてください
${連絡先}-dadasdsdasd