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.
次のような奇妙なデータベース エントリがあります。
$sSomeTextHere$uTextAgain$pText
正規表現を使用して $ 記号とその記号の後の 1 文字を削除したいと考えています。これどうやってするの?
You can use this:
echo preg_replace('/\$\w/', '', $string)