How do I insert a variable (I don't know if the term is correct) to an list array so that the text inside the array continues from the same line.
What should be the correct syntax for the $name inside the array?
$docx->createListStyle('Latin', $numberatsioonDisain);
$name = $_POST['name']; // Value comes from HTML form
$myList = array(
[$name, 'word'], // Value is correct, but "Example text" starts from a new line (with a new list number). But I want the second word to continue from the same line.
'Example text.');
$docx->addList($myList, 'Latin');