i have array of phonics having multiple alternate English letters
$q[0][0]="c";
$q[1][0]="k";
$q[2][0]="q";
---
$q[0][1]="u";
$q[1][1]="a";
--
$q[0][2]="t"
i have table of words which contain words cut put tag
i want to permute above 2d array and generate query having all possible words as
cut
qat
kut
--
cat
qut
kat
----
or we may include also and continue above series for programmatic logic requirements
tac
tuc
tak
---
tuq
taq
tuk
---
act
ukt
uct
---
all i need is array variable like $word{$i] having all above possible permutations words. when i would run above query possible word, it will only find "cut" in table and i would replace "ڪَٽ" with "cut".... yes its roman translitration the programming still yet i have tried is
<input type="text" name="leng" id="leng" value="" ><input type='submit' name='submit'></form>
<?php
if(isset($_POST['submit'])){
for($i=0; $i<=3; $i++){ //3 is number of listboxes or length of given string
//echo $list[$i];
for ($x=0; $x<= $_POST['leng']; $x++){
?>
<script>
document.getElementById("leng").value = document.getElementById("<?php echo $list[$i]; ?>").length;
</script>
// i have made three list boxes named list0, list1, list3 in above line list0="c, q, k" list1="u, a" list2="t"
<?php
//echo "($i-i)-- ($x-X) <BR>";
echo $q[$i][$x]."<BR>";
}
}