Skip to content
Advertisement

Generate word combinations

For example this is my text :

JavaScript

I explode text and list with array :

JavaScript

I want to generate words in array to something like this:

JavaScript

I tried with foreach and rand but I couldn’t generate like showed. Is there any chance to generate just like my request?

Advertisement

Answer

You can have a look at this PEAR PACKAGE Example usage:

JavaScript

The output will be:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement