BBBootstrap
Create
Snippets
Templates
Creators
Tools
Login
Register
BBbootstrap
Snippets
Templates
Tools
Blogs
Pricing
Register
Create
Codes Tagged php
Home
tags
php
Generate unique random number in Laravel
<p>Code to generate a unique random number in Laravel.</p><pre class="ql-syntax" spellcheck="false">$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; // generate a pin based on 2 * 7 digits + a random character $pin = mt_rand(1000000, 9999999) . mt_rand(1000000, 9999999) . $characters[rand(0, strlen($characters) - 1)]; // shuffle the result $string = str_shuffle($pin); return $string; </pre>
share
report
BBBootstrap Team
2 years ago
cfgbAdd a Code snippet
<p>fhgfhgcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippetcfgbAdd a Code snippet</p>
share
report
BBBootstrap Team
7 months ago
1
Add a code
Add Code
Remove ads
remove
Latest codes
view all
Latest Snippets
view all
BBbootstrap
Quick Links
Creators
BBBootstrap Tags
Snippets
About
Contact us
Tools
Online Editor
Color Palette
Gradient Colors
Quizes
Socials
Facebook
Twitter
Instagram
Youtube
© 2024 bbbootstrap. All rights reserved
Terms of Service
Privacy Policy