Forum


Replies: 3   Views: 4152
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 nikkyb8  · 18-11-2013 - 18:33

Okit wasjustnot tojumponline soit works

$ text= array ('11 ','22');

Can you help meto do thisdynamicallybecause when Idid this:

$donneesss='111111,22222;

$optionsCochees= explode(',', $donneesss);

foreach ($optionsCocheesas $option) {

$sss[] = $option;

}

$aData[]= array ('designation' => $sss,'qty' =>$ data["Quantity"],pu '=>$ data["prix_unitaire"].' € ',' ht'=>$ data["ht"] '.');

It gives methefollowing error:



Warning:htmlspecialchars()Expectsparameter 1tobestring, arrayGiven in/ var/ www /docx/ classes /CreateTemplate.incon line1639



Do you knowwhat's the reason?