/**
* 验证输入的手机号码是否合法
*
* @access public
* @param string
mobilephone∗需要验证的手机号码∗∗@returnbool∗/functionismobilephone(
mobile_phone)
{
$chars = "/^13[0-9]{1}[0-9]{8}$|15[0-9]{1}[0-9]{8}$|18[0-9]{1}[0-9]{8}$|17[0-9]{1}[0-9]{8}$/";
if(preg_match($chars, $mobile_phone))
{
return true;
}
return false;
}