Recursive PHP Spintax Class 2.5 Posted on August 17th, 2011
Here is the completely true recursive renovated class that makes use of regex. Get 3.0 NOW! PHP Recursive Spintax Class 3.0 12345678910111213141516171819202122232425262728293031323334<?php class Spintax { function spin($str, $test=false) { if(!$test){ do { $str = $this->regex($str); [...]
PHP Spintax Class v2 Posted on August 15th, 2011
Just a quick fix, it now returns the spun text as a string. An additional argument was added so that the user can choose what to return the spun text as either as an array or as a string, and is set to string by default. 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162<?php class Spintax { function spin($string, $view=false, $returnAs="string") [...]
Chargify API PHP Class For Statements Posted on July 29th, 2011
This was made because the original Chargify PHP Client did not have a class for the Statements, so I added it to the library myself, and now I am sharing the code for others who may need this functionality. The original code can be found at https://github.com/jforrest/Chargify-PHP-Client The only changes made were: ChargifyConnector.php ChargifyStatement.php (added) [...]
PHP Recursive Spintax Class Code Posted on July 13th, 2011
This class is deprecated, click here to get v2.5! The code below is a class that allows you to use spintax in PHP. Simple as pie! 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859<?php class Spintax { function spin($string, $view=false) { $z=-1; $input = $this->bracketArray($string); for($i=0; $i<count($input);$i++){ [...]