polysign / wpSwitch

Simple plugin to switch through an array. You can use it standalone, or as a plugin for WP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wpSwitch is a simple Wordpress plugin to switch through an array. You can use it standalone if you want to. It's just a single file :)

1. initialize wpSwitch:
$obj = new wpSwitch(array( "red", "blue", "green" ));

2. use it inside a loop
echo $obj->go() . " ";

3. this will output
red blue green

About

Simple plugin to switch through an array. You can use it standalone, or as a plugin for WP.


Languages

Language:PHP 100.0%