Login   Register  
PHP Classes
elePHPant
Icontem

Class: Alternate text

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Alexander Amzin  >  Alternate text  >  Download .tar.gz .zip  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Alternate text
Base name: altstring
Description: Alternative strings; (string1|string2|string3)...
Related classes: , , , ,
Version: -
PHP version: -
License: Artistic License
All time users: 1382 users
All time rank: 2340
Week users: 0 users
Week rank: 2507
Picture of Alexander Amzin
Author: Alexander Amzin <e-mail contact>
Packages: 2 Browse this author's classes Browse this author's classes
Country: Russian Federation Russian Federation - PHP jobs in Russian Federation
Age: 31
All time rank: 135637 in Russian Federation Russian Federation
Week rank: 2242 Down67 in Russian Federation Russian Federation Down


  Detailed description  
This class is meant to extract a random text string from a string that defines a set of possible combinations of words.

It is supposed to be used to generate variations of a message that can be refreshed dynamically.

Just try this combination definition "(hello|bye(world|(sweet|)home|moon)" to see the multiple variations of text strings that the class generates.

 

  Groups  
Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Not sure (58.3%)
Not sure (58.3%)
-
-
-
-
Insufficient (35.0%)
2110
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file alter1.6.php Class Version 1.6 of class - now with regexps
Plain text file alteroldsrc.php Class Alternative strings. Please note - this is handcoded OLD source. Use second file for better alternation.

Download all files: altstring.tar.gz altstring.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.