Home >Backend Development >PHP Tutorial >oauth - PHP 生成 32 位非0整形字串 , 这个怎么写哦

oauth - PHP 生成 32 位非0整形字串 , 这个怎么写哦

WBOY
WBOYOriginal
2016-06-06 20:34:29954browse

PHP 生成 32 位非0整形字串 , 这个怎么写哦

回复内容:

PHP 生成 32 位非0整形字串 , 这个怎么写哦

<code><?php $a=array();
for($i=0;$i<32;$i++)
    $a[] = rand(1,9);
var_dump(implode('',$a));
?>
</code>
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