Php Text Randomization Plugin

Looking for a simple

the syntax is a segment is contained within {} and can be recursive

and options can be in | e.g. blue|red|green means that the option can be blue OR red OR green.

EXAMPLE

{blue|red} {bird,parrot} can output the following POSSIBLE combinations

1) blue bird
2) red bird
3) blue parrot
4) red parrot

it also supports a empty option eg. {A||C) outputs

1) A
2) C
3)

running through the script will only do one

the brackets can be recursive
e.g.

{{blue|red} {bird,parrot} | {gold|silver} {{fish|dragon}|{fly||fruit}}

this should be useable in a wordpress blog theme via the shortcode and in the header and footer sections when inside a wordpress blog.

if the work is good enhancements will be made.

Leave a Reply

Your email address will not be published. Required fields are marked *