1,print_r(str_split('hello'));
print_r(str_split('hello',3));
array
(
[0] => hel
[1] =>
)
/*指定什么位置开始分割*/
array
(
[0] => h
[1] => e
[2] => l
[3] => l
[4] => o
)
/*指定字符开始分割,有多少次分多少次*/
2,print_r(explode(',','h,e,l,l,o'));
array
(
[0] => h
[1] => e
[2] => l
[3] => l
[4] => o
)