标签: php substr strsplit
我想将此字符串转换为数组
$string ="3d5h2w10d"; result => 0 = > 3d 1 = > 5h 2 = > 2w 3 = > 10d
我尝试使用此代码,但不起作用
$arr1 = str_split("3d5h2w10d"); print_r($arr1);