PHP 迭代验证的有关问题

WBOY
Release: 2016-06-13 12:40:32
Original
948 people have browsed it

PHP 迭代验证的问题
我现在要做个用户注册的东西,但是用户和密码不需要用户自己填写,是系统生成的我是自己写了个函数,用mt_rand做的,所以怕重复,就在类里面写了个静态方法,可以用,myclass::chkeuser验证,看是不是已经有了这个用户名密码,但是我觉得值验证一次,不行,要是下次,还是重复的呢,是不是该验证到,没有重复的为止,就想到迭代了,但是怎么写,脑袋里模糊了,请教各位大侠?

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