21,887
社区成员
发帖
与我相关
我的任务
分享
$str ='abc123def5g';
preg_match_all('/\d+/i', $str, $arr1);
preg_match_all('|\d+|i', $str, $arr2);
preg_match_all('(\d+)i', $str, $arr3);
preg_match_all('{\d+}i', $str, $arr4);
preg_match_all('[\d+]i', $str, $arr5);
preg_match_all('<\d+>i', $str, $arr6);