PHP取得字串前幾個字/字串擷取/字串取得指定位數(取前幾位)[PHP]

 


$str_sec=1117891231456456;

$str01=substr( $str_sec , 0 ,10 );

得到結果會是1117891231

留言

此網誌的熱門文章