当前位置:Gxlcms > PHP教程 > php函数应用实例

php函数应用实例

时间:2021-07-01 10:21:17 帮助过:14人阅读

  1. 手机号码管控只能填写数字和‘-’符号

    if(!is_numeric(str_replace('-','',$request['tel']))){
    return $response = return_value(-1, "电话号码只能是数字");
    }

人气教程排行