Forum


Replies: 3   Views: 3844
Remove unused variables
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by mbcalvin  · 27-09-2012 - 19:39

Hello,
I looked through your documentation but haven't found any way to remove variables from a template if they are not filled. Is there any way to do this.

I looked at using blocks, but a lot of my variables are inline, and using $docx->clearBlocks() removes the whole line.

Thanks,
Mike