PHP Classes

Alternate text: Alternative strings; (string1|string2|string3)...

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-08-22 (12 years ago) RSS 2.0 feedStarStar 34%Total: 1,544 All time: 2,439 This week: 1,158Up
Version License Categories  
altstring 1.0.0Artistic LicenseAlgorithms, Text processing
Description Author  

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.

Picture of Alexander Amzin
Name: Alexander Amzin <contact>
Classes: 2 packages by
Country: Russian Federation Russian Federation
Age: 35
All time rank: 150945 in Russian Federation Russian Federation
Week rank: 1585 Down49 in Russian Federation Russian Federation Down

  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.

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,544All time:2,439
 This week:0This week:1,158Up
 User Ratings  
 All time