Created
May 28, 2025 13:26
-
-
Save Jspascal/b64aa19c83eaa960868a19a2b982a6c3 to your computer and use it in GitHub Desktop.
sample reference generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function generateReference(): string | |
| { | |
| $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
| $randomString = ''; | |
| for ($i = 0; $i < 16; $i++) { | |
| $randomString .= $characters[rand(0, strlen($characters) - 1)]; | |
| } | |
| return 'REF' . $randomString; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment