- Impact
- 41
I have these snippets, think I got them off this site, and they list letter combos etc. I want to make it so I can add a tld to the end of all the combos but when i try the tld is in front and not at the end here are the snippets:
2 # combos
3 letter combos
3 # combos
anyone know how to pop in a schalar that would be at the end of all the combos?
2 # combos
Code:
<?
/*
1 - 999
*/
$ini = 0;
$fin = 99;
for($i=$ini; $i<=$fin; $i++)
{
printf( "%s<br />\r\n", str_pad($i, 2, "0", STR_PAD_LEFT) );
}
?>
3 letter combos
Code:
<?
$letra = array();
for($i=97; $i<=122; $i++)
{
$letra[] = chr($i);
}
foreach($letra AS $a) {
foreach($letra AS $b) {
foreach($letra AS $c) {
echo "$a$b$c<br />\r\n";
}
}
}
?>
3 # combos
Code:
<?
/*
1 - 999
*/
$ini = 0;
$fin = 999;
for($i=$ini; $i<=$fin; $i++)
{
printf( "%s<br />\r\n", str_pad($i, 3, "0", STR_PAD_LEFT) );
}
?>
anyone know how to pop in a schalar that would be at the end of all the combos?













