Evan Nemerson wrote:
> I need to generate every possible combination of the the values in an array.
> For example, if...
>
> $array = Array("A", "B", "C");
> I really have no idea where to begin. The best lead I can think of is that
> there are going to be n! elements in the output array, where
Austin Marshall wrote:
> Evan Nemerson wrote:
>
>> I need to generate every possible combination of the the values in an
>> array. For example, if...
>>
>> $array = Array("A", "B", "C");
>>
>> I want to be able to do something like
>>
>> print_r(magic_function($array));
>>
>> which would output
Evan Nemerson wrote:
> I need to generate every possible combination of the the values in an array.
> For example, if...
>
> $array = Array("A", "B", "C");
>
> I want to be able to do something like
>
> print_r(magic_function($array));
>
> which would output
>
> Array
> (
> [0] => "ABC
3 matches
Mail list logo