Forum


Replies: 1   Views: 372
Multimerge
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  · 04-11-2018 - 10:15

Hello,

We recommend you to check if the following code:

$a = implode($listComponents, '","');
$b = '"' . $a . '"';
array($b)

is returning an array with multiple values or an array with a single string value. We also recommend you to follow the PHP documentation about arrays (http://php.net/manual/en/language.types.array.php) or use a function such as array_push (http://php.net/manual/en/function.array-push.php).

Each value of the documentArray option (https://www.phpdocx.com/api-documentation/docxutilities/merge-Word-documents-with-PHP) must be an existing DOCX file (Advanced or Premium licenses) or a DOCXStructure object when working with in-memory DOCX document using a Premium license.

Regards.