これは、文字列を分析するためのものです...文字列を分解してすべての文字を取得する必要があります。基本的:
$string = "This is (1990-2002) some, text [after] this.";
これを取得するにはどうすればよいですか:
$string = "This is ( 1990 - 2002 ) some , text [ after ] this .";
これは次のようになります。
$string = str_replace('','',$string);
注: 二重スペースが挿入されて削除されても問題ありません...