Re: list all constitute group of array ?
| From: | German Geek | Date: | Sat, 14 Feb 2009 11:22:26 +0000 |
| Subject: | Re: list all constitute group of array ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288251@lists.php.net to get a copy of this message | ||
Do you want exactly that list or simply all the possible combinations?
If you want all possible combinations, search for a permute or permutation
function in php...
Does sound like homework lol. :-)
Regards,
Tim
Tim-Hinnerk Heuer
http://www.ihostnz.com
Alanis Morissette - "We'll love you just the way you are if you're
perfect."
2009/2/14 LKSunny <ad@pc86.com>
> <?
> $a = array("a", "b", "c", "d");
>
> /*
> how to list:
> abcd
> abc
> ab
> ac
> ad
> bcd
> bc
> bd
> cd
> a
> b
> c
> d
>
> who have idea ? thank you very much !!
> */
> ?>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>