Any possibility to buid word list using this arrays
$arrray1 = array(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,v,u,w,x,y,z);
$array2 = array(0,1,2,3,4,5,6,7,8,9);
![]()
| SitePoint Sponsor |
Any possibility to buid word list using this arrays
$arrray1 = array(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,v,u,w,x,y,z);
$array2 = array(0,1,2,3,4,5,6,7,8,9);
![]()


What do you mean by word list? Those arrays provide every letter of the English alphabet, so why not just use a dictionary?
Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more
I want to get print for one of my project
like a
a
ab
ba
abc
acb
bac
cab
cba
like all the possibilities


Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more




Not infinite, but a whole lot depending on your word size. For example a 3 letter word would have 17576 combinations, a 4 letter word would have 456976 combinations, etc... Luckily, this is something that computers are good at.
This will get you all 4 letter combinations of letters a-z
if you need numbers and letters usePHP Code:<?php
$alphabet = 'abcdefghijklmnopqrstuvwxyz';
$alph = str_split($alphabet);
foreach($alph as $letter1){
foreach($alph as $letter2){
foreach($alph as $letter3){
foreach ($alph as $letter4){
echo $letter1.$letter2.$letter3.$letter4.'<br />';
}
}
}
}
?>
PHP Code:$alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789';


Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more




But since the longest (English) word in the world is PNEUMONO­ULTRA­MICRO­SCOPIC­SILICO­VOLCANO­CONIOSIS
we can safely say that the word size is going to be 45 or less characters, which is just short of infinity
(I think you meant to say 26^infinity?)
Bookmarks