Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $aChar=array("a","b");
- $digit=2;
- for($i1=0;$i1<count($aChar);$i1++)
- {
- $iPos=0;
- $aShow=array();
- $aShow[$iPos]=$aChar[$i1];
- for($i2=0;$i2<count($aChar);$i2++)
- {
- $iPos++;
- $aShow[$iPos]=$aChar[$i2];
- cetak($aShow);
- }
- }
- function cetak($ar,$s='')
- {
- foreach($ar as $v)$s.=$v;
- echo $s."<br/>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement