I am not so sure how to explain my problem.
I have Array like this
$foo = array{"one", "two", "three"}
and i need to push every value to other value.
need result kind like this …
$new = array{"one two three", "one two", "one three", "two three", "one", "two", "three"}
IS that posible to make result like that ?
I hope somebody can help me.
Thanks before 🙂
Here is a rather simplistic attempt at your problem.
Result can be found on Ideone. The output is in a multi-dimensional form, but I’m sure you can figure out how to flatten that.