$data = '+11234567890';if( preg_match( '/^+d(d{3})(d{3})(d{4})$/', $data, $matches ) ){ $result = $matches[1] . '-' .$matches[2] . '-' . $matches[3]; return $result;}
欢迎分享,转载请注明来源:内存溢出
$data = '+11234567890';if( preg_match( '/^+d(d{3})(d{3})(d{4})$/', $data, $matches ) ){ $result = $matches[1] . '-' .$matches[2] . '-' . $matches[3]; return $result;}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)