Skip to content

Instantly share code, notes, and snippets.

@jornane
Created March 9, 2021 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jornane/1cc1c22b4e0e026632bf386e3c881a6f to your computer and use it in GitHub Desktop.
Save jornane/1cc1c22b4e0e026632bf386e3c881a6f to your computer and use it in GitHub Desktop.
Random string
echo strtolower( strtr( base64_encode( random_bytes( 12 ) ), '/+9876', '012345' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment