logo small

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

Recommend this page to a friend!
Download Download
Info View files Files Install with Composer Install with Composer Download Download Reputation Support forum Blog Links
Ratings Unique User Downloads Download Rankings
StarStar 34% Total: 1,620 All time: 2,435 This week: 50Up
Version License Categories
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: 44
All time rank: 155247 in Russian Federation Russian Federation
Week rank: 195 Up12 in Russian Federation Russian Federation Up

Files folder image Files (2)
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.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Version Control Unique User Downloads Download Rankings
0%
Total: 1,620
This week: 0
All time: 2,435
This week: 50 Up
User Ratings
All time
Utility:58%StarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:34%StarStar
Rank:4187
About us About us Advertise on this site Advertise on this site Site map Site map Newsletter Newsletter Statistics Statistics Site tips Site tips Privacy policy Privacy policy Contact Contact

AltStyle によって変換されたページ (->オリジナル) /