Forum


Replies: 1   Views: 3396
Something about creating a list
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 clio  · 08-04-2015 - 02:32

Hello, I’m trying to create a list (like the snapshot shown below): https://drive.google.com/open?id=0B1VQFyg1-13uX3BaNUhVM0VVcTg&authuser=0 By using an array and $docx->addList($arr): $arr = array( 'ITEM ONE', array( 'The General Description of Item One', array('Sub description one', 'Sub description two'), 'Continue the General Description of Item One', array('Sub description three', 'Sub description four','Sub description five') ), 'ITEM TWO', array('Candidate one', 'Candidate Two') ); $docx->addList($arr); But I can’t get the expected result. Is there any way to achieve this? Best regards, Henry