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.
文字列内のすべての特殊文字をエスケープする効果的な方法が必要です。たとえば、私の文字列
I need some effective way(1) [2] for $10 + e
に変換する必要があります
I need some effective way\(1\) \[2\] for \$10 \+ e
どうも
試してみてくださいquotemeta:
quotemeta
http://uk3.php.net/manual/en/function.quotemeta.php