Home  >  Article  >  Backend Development  >  PHP 迭代验证的有关问题

PHP 迭代验证的有关问题

WBOY
WBOYOriginal
2016-06-13 12:40:32915browse

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

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