I
I
IwanIwanow2021-07-21 12:45:43
PHP
IwanIwanow, 2021-07-21 12:45:43

How to add space to docx document using PhpWord?

Spaces between words are added, but not added at the end.
I'm trying to do this:

$document->setValue('object', $_POST['object'] . ', ' . ' ');

but after the comma, the space does not want to be added.
I also tried to specify instead of a space    , and in this case, when trying to open docx, an error message appears and the document does not open.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question