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

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

WBOY
Release: 2016-06-06 20:34:29
Original
969 people have browsed it

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>
Copy after login
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