2017-01-20 93 views

回答

1

您可以使用正則表達式是:

preg_match_all("/[0-9]+/", $input, $findings, PREG_SET_ORDER); 
foreach ($findings as $value) { 
    // do something with the value 
} 

欲瞭解更多相關信息或實例看這裏: http://php.net/manual/de/function.preg-match-all.php

相關問題