Created
October 18, 2021 14:02
-
-
Save tobiasroeder/20d60f4292e673bd46436b04e8592b9c to your computer and use it in GitHub Desktop.
0-9 A-Z a-z
This file contains 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
<?php | |
$chars = ''; | |
// 65 - 122 (A-Za-z) | |
// 48 - 122 (0-9A-Za-z) | |
for ($i = 48; $i <= 122; $i++) { | |
// skip 58 - 64 and 91 - 96 | |
if ($i >= 58 && $i <= 64 || $i >= 91 && $i <= 96) | |
continue; | |
$chars .= chr($i); | |
} | |
var_dump($chars); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment