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.
二重引用符で囲まれている場合にのみ \n と \r を削除するにはどうすればよいですか?
私は基本的にに構文が必要preg_replaceです。
preg_replace
preg_replace( '/["]*(\n).*["]/', '', $str );
「qoutemarks」の間の\nを置き換えるにはどうすればよいですか?