Home  >  Article  >  Backend Development  >  php函数应用实例

php函数应用实例

WBOY
WBOYOriginal
2016-06-20 12:40:361017browse

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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn