正则判断电话号码

function isTelephone(phone)
{
    return preg_match('/^((\\(?\\d{3,4}\\)?)|(\\d{3,4}-)?)\\d{7,8}/', $userphone);
}
prolove 的头像

发表回复

  • d953

  • 846b

  • 4da7

  • 1e1b

  • 6276

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Insert the contact form shortcode with the additional CSS class- "bloghoot-newsletter-section"

By signing up, you agree to the our terms and our Privacy Policy agreement.