PHP Code for help with an article spinner

Discussion in 'Programming' started by Big Zee, Feb 12, 2009.

  1. #1
    Hi,

    Does anyone know how I would write some code to "Unspin" the syntax that is written by general article spinners?

    IE - The code goes like this ( "{{{" are the code spinning tags and | is the random seperator ):

    The {{{{{{Man|Woman}}}|{{{cat|dog|cow}}}}}} {{{walked|ran}}} in the park.
    Code (markup):
    This when run through the code would produce a random statement like "The Man ran in the park"

    As you can see you can have tags within tags - how would I create the php code to produce the random statement without the tags?

    Many thanks for the help
     
    Big Zee, Feb 12, 2009 IP