/**********************************************************************************
****** class name : funny_strings
****** language : php
****** author : Martin Lacher
****** contact : m|a|r|t|i|n dot l|a|c|h|e|r at w|e|b dot d|e
****** version : 1.0
****** date : 13/11/2004
****** licence : gnu-gpl
******
****** Free for private use, for commercial use contact the author.
******
**********************************************************************************/
/**********************************************************************************
****** Transforms text into h4xx0r- or eLiTe-StYlE or shlefufs Wdors
**********************************************************************************/
var $separator_read = ' ';
var $separator_write = ' ';
var $elite_init = 0;
/*************************************************************************
***** The read_separator will be used, when a text is separeted ******
***** into words. It indicates where one word ends and where the ******
***** next one starts. It is only one character. ******
**************************************************************************/
/*************************************************************************
***** The write_separator will be used, when a text is joined ******
***** after being shuffled. It is set between the words. It is ******
***** only one character. ******
**************************************************************************/
/*************************************************************************
***** This function set a initial number for elite transformation ******
***** It accepts all kinds of ints an floats, but reduces them to ******
***** 0 or 1. ******
**************************************************************************/
/*************************************************************************
***** This Function checks only whether a character is a letter *******
***** or not. used in shuffle_word(). *******
**************************************************************************/
/*************************************************************************
***** This function changes the case of a single character ******
**************************************************************************/
/*************************************************************************
***** This function transforms a text into h4xx0r-5ty|3 ******
**************************************************************************/
/*************************************************************************
***** This function transforms a text into eLiTe-StYlE ******
**************************************************************************/
/*************************************************************************
***** This function transforms a text into HALF elite STYLE ******
**************************************************************************/
/*************************************************************************
***** This function shuffles one single word. ******
**************************************************************************/
/*************************************************************************
***** This function shuffles a whole text. ******
**************************************************************************/
function shuffle_text($str)
{
$words = explode($this->separator_read, $str);
$shuffled = array();