Forum


Replies: 13   Views: 4027
Adding multi-line text
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 admin  · 11-04-2013 - 12:12

Hello,

Please check intermediate/Template_multitext.php example included on phpdocx pro.

A short example is:

-------------------------------------------------------
$text = array(
'David Hume',
'-----------',
'Bye'
);

$docx->addTemplateVariable('NAME', $text)
-------------------------------------------------------

Using this code the template placeholder will be replaced writing a new line for each array position.

Regards.