LoginSignup
2
2

More than 5 years have passed since last update.

任意の文字列群からランダムな文字列を生成する

Last updated at Posted at 2013-07-23
<?php
Zend\Math\Rand::getString(6, '23456789abcdefghjkmnpqrstuvwxyz', true);

第三引数は暗号学的に強度にするかという指定です。

参照 : http://framework.zend.com/manual/2.2/en/modules/zend.math.introduction.html

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2