こんにちは、この「動的」セパレーターに基づいて、文字列を配列に分割する必要があります。
String  1 String2
String2 Â 65Â String3
それの変数の間の数 Â
...また、文字列にも含まれている可能性がÂ
あるため、str_replaceまたは爆発は役に立たない(私にとって)
こんにちは、この「動的」セパレーターに基づいて、文字列を配列に分割する必要があります。
String  1 String2
String2 Â 65Â String3
それの変数の間の数 Â
...また、文字列にも含まれている可能性がÂ
あるため、str_replaceまたは爆発は役に立たない(私にとって)
$str = "String  1  ";
$result = preg_split('/ Â [\d]+Â /', $str);
print_r($result);
Array
(
[0] => String
[1] => Â
)
説明:
# Match the characters “ Â ” literally « Â »
# Match a single digit 0..9 «[\d]+»
# Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
# Match the characters “Â ” literally «Â »