Home > Backend Development > PHP Tutorial > php函数应用实例

php函数应用实例

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-20 12:40:36
Original
1044 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template