<?php
$mystring="A1 A2 A3 A4 A5 A6";
print_r(mb_split("\s",$mystring)); //把每個空格切開
echo '<br>';
print_r(preg_split('//', $mystring, -1, PREG_SPLIT_NO_EMPTY)); //每個字文元都切開
echo '<br>';
print_r(explode(" ",$mystring)); //把每個空格切開
?>
$mystring="A1 A2 A3 A4 A5 A6";
print_r(mb_split("\s",$mystring)); //把每個空格切開
echo '<br>';
print_r(preg_split('//', $mystring, -1, PREG_SPLIT_NO_EMPTY)); //每個字文元都切開
echo '<br>';
print_r(explode(" ",$mystring)); //把每個空格切開
?>