GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Does somebody know how to generate a list with one letter and one number combined? (https://gfy.com/showthread.php?t=171283)

Seb From Holland 09-05-2003 12:25 AM

Does somebody know how to generate a list with one letter and one number combined?
 
I want to have a list like this:

a1
a2
a3
|
|
|
z6
z7
z8
z9

as well as

aa
ab
ac
|
|
|
zx
zy
zz

Does anyone know how to generate it? Any help would be greatly appreciated!

Seb.

detoxed 09-05-2003 12:26 AM

a very short script

Seb From Holland 09-05-2003 12:27 AM

Yes, but I'm a designer. I can't script. :(

Manie 09-05-2003 12:32 AM

-script open tag-
alpha = Array('a','b','c','d');
numm = Array('1','2','3','4');

for(x=0;x<alpha.length;x++) {
for(y=0;y<numm.length;y++) {
hahahahahahahahahahahahahahaha(alpha[x]+numm[y]+"<br>");
}
}
-script close tag-

just make the 'alpha' and the 'numm' array as long as your likeing.

Chris 09-05-2003 12:32 AM

i can make the script for you ... 20$

Seb From Holland 09-05-2003 12:35 AM

Quote:

Originally posted by Manie
-script open tag-
alpha = Array('a','b','c','d');
numm = Array('1','2','3','4');

for(x=0;x<alpha.length;x++) {
for(y=0;y<numm.length;y++) {
hahahahahahahahahahahahahahaha(alpha[x]+numm[y]+"<br>");
}
}
-script close tag-

just make the 'alpha' and the 'numm' array as long as your likeing.

Hey Manie,

Thanks, really!! Could you put that in the PHP board option so the board won't mess it up?

Regards,
Seb.

Seb From Holland 09-05-2003 12:36 AM

Quote:

Originally posted by JupZChris
i can make the script for you ... 20$
Looks like somebody beat you to it. But I'll keep you in mind next time I need a script of some sort.

Chris 09-05-2003 12:49 AM

Quote:

Originally posted by Seb From Holland


Looks like somebody beat you to it. But I'll keep you in mind next time I need a script of some sort.


okie :)

KC 09-05-2003 01:30 AM

This works.. put it in a file called something.php, run it with a browser.

PHP Code:


<?
    $alpha = Array('a','b','c','d');
    $num = Array('1','2','3','4');

    $c_alpha = count($alpha);
    $c_num = count($num);

    for ($x=0; $x < $c_alpha; $x++) {
        for ($y=0; $y < $c_num; $y++) {
            echo $alpha[$x] . $num[$y] . "<br>/n";
        }
    } 
?>


Seb From Holland 09-05-2003 01:36 AM

Thanks everybody! I've got it sorted out.


All times are GMT -7. The time now is 06:33 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123