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.
Hello,
Check if a variable is present in the document?
For example if I have $ma_var$ in a Word document, there has been a function that checks whether ma_var is detected in the file?
Thanks for your answer
Hello,
You can use the getTemplateVariables method:
http://www.phpdocx.com/api-documentation/templates/get-Word-template-variables
It returns an array with the existing placeholders.
Regards.