特定の文字列を全て置換する[Javascript] - Qiita

"apple,banana,orange" のような文字列を "apple banana orange" に置き換えたいとします。 (カンマを半角スペースに) PHPですと以下のように、 php