Skip to content

Instantly share code, notes, and snippets.

Avatar

Emilio Nicolás EmilioNicolas

View GitHub Profile
@PhiSYS
PhiSYS / spintax.php
Last active Apr 27, 2020 — forked from irazasyed/spintax.php
PHP: Text Spinner Class - Nested spinning supported.
View spintax.php
<?php
/**
* Spintax - A helper class to process Spintax strings.
* @name Spintax
* @author Jason Davis - https://www.codedevelopr.com/
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/
* Modified by Mark Larsen:
* Added ability so that a fixed output can be returned.
* Modified by David Strencsev:
* Refactor and regular expression lazy optimization.