A script to generate all 3 letter combinations?

Soldato
Joined
10 May 2004
Posts
3,790
Location
East Yorkshire, UK
Hi

is there a script that will list all three letter combinations (has to be one per line) eg

abc
acb
asf
saf

but all of them?

Many Thanks
 
i made one in php.

Code:
<?php
$alphabet = "abcdefghijklmnopqrstuvwxyz";
for($first = 0; $first <= 25; $first++) {
	for($second = 0; $second <= 25; $second++) {
		for($third = 0; $third <= 25; $third++) {
			echo $alphabet{$first} . $alphabet{$second} . $alphabet{$third} . "<br>";
		}
	}
}
?>
 
Last edited:
Back
Top Bottom