You can easily generate random string using security class.
$string = Yii::$app->security->generateRandomString(12); print_r($string); //result JCt-5GeUlR8q
Yii2 is the best PHP Framework I have ever used. OOP in action.
Wonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging!PHP Database Development in India
Yii2 is the best PHP Framework I have ever used. OOP in action.
ReplyDelete
ReplyDeleteWonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging!
PHP Database Development in India