Hoping you can help, I'm trying to add a Text and a List into a single table cell, esentially a multi-type "addElement" array, is this possible?
At present I have:
$mList = array('list1', 'list2');
$myList = $docx->addElement('addList', array($mList, array('val' => 1))); // this works fine
$description = array($docx->addElement('addText', 'hello'), $myList); // problem line
// Create Table
$tableValues[] = array($description, "item2", "item3", "item4");
$paramsTable = array(
'border' => 'single',
'border_sz' => 10,
'size_col' => 2500
);
$docx->addTable($tableValues, $paramsTable);
Any help would be great
Andy