Forum


Replies: 1   Views: 3248
Vérifier si une variable est présente dans le document
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 nikkyb8  · 10-08-2015 - 06:05

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

Posted by admin  · 10-08-2015 - 06:24

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.