Home  >  Article  >  php教程  >  PHP 随机字符串

PHP 随机字符串

WBOY
WBOYOriginal
2016-06-06 20:00:13867browse

python里有random的包, 可以实现比如随机字符串之类的, php 没有。 所以 自己 实现 了一个 function genRandomString($len){ $chars = array( a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I,

python里有random的包, 可以实现比如随机字符串之类的, php 没有。

所以 自己 实现 了一个

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
Previous article:PHP session有效期问题Next article:mysql与php