<?php

$string = "abc1234";

preg_match('/(\d+)/', $string, $matches );

echo $matches[0];

?>

 

 

arrow
arrow
    全站熱搜

    yuanann 發表在 痞客邦 留言(0) 人氣()