PHP Encounters Chinese segmentation problem
$a = "A brigade of two brigade three brigade";
The string is the string that was previously processed, and the space is
Goal: Divide the string into three strings with a space.
We have tested n multiple empty line expressions, and can not use split split;
Also used the explode function is not implemented, please master to help solve it.
Requires a workaround for PHP.
------to solve the idea----------------------
$str = ' A Brigade two brigade three brigade ';
$arr =explode (", Str_replace (", ", $str));
Print_r ($arr);
Array ([0] = a brigade [1] = two Brigade [2] = three brigade)
------to solve the idea----------------------
The landlord is OK?
$string = "111 222 333";
echo Htmlspecialchars ($string);
Test it first.
------to solve the idea----------------------
$a = "A brigade of two brigade three brigade";
$a = Str_replace (', ', ', $a);
$result = Explode (' ', $a);
Echo '
;
Echo '';
Print_r ($result);
Echo '
';
Array
(
[0] = a brigade
[1] = two Brigade
[2] = three Brigade
)