Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
Solved

# all possible 3digit combinations (a-z0-9) script...

Posted on 2005-04-29
Medium Priority
336 Views
I need a script that can output all possible 3digit combinations of a-z0-9.  So EG: a3b, 33b, etc.  I know it's pretty simple, just need some information or code on how to do it :)

0
Question by:lamerhooDJV
• 3
• 2

LVL 18

Expert Comment

ID: 13897426
hw?
0

LVL 1

Author Comment

ID: 13897432
hw?
0

LVL 18

Expert Comment

ID: 13897436
is this homework?
0

LVL 1

Author Comment

ID: 13897441
no sir, merely for curiosity on how to do it :)
0

LVL 18

Accepted Solution

bobbit31 earned 2000 total points
ID: 13897546
<?php

\$arrChars = array( 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9' );

for (\$i=0;\$i<count(\$arrChars);\$i++) {
for (\$j=0;\$j<count(\$arrChars);\$j++) {
for (\$k=0;\$k<count(\$arrChars);\$k++) {
printf("\$arrChars[\$i]\$arrChars[\$j]\$arrChars[\$k]<br>");
}
}
}

?>
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
###### Suggested Courses
Course of the Month10 days, 5 hours left to enroll