title: PHPWord Repeat template tag replacement inside one document
body: <p>I have a word document template file and variables to fill it with(using mysql) but I don't know how to repeat the process over and over again until the mysql while process stops which is when it'd save the file and allow the user to download it.
  For example:<br/>
  WORD DOCUMENT GENERATED:<br/>
  Filled Template<br/>
  Filled Template<br/>
  Filled Template<br/>
  Filled Template<br/>
  END DOCUMENT<br/>
  Allow user to download file.</p>