Update recipes.rst (#2367)
This commit is contained in:
parent
aac3a601e1
commit
08064480ea
@ -29,7 +29,7 @@ Use ``php://output`` as the filename.
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
$phpWord = new \PhpOffice\PhpWord\PhpWord();
|
$phpWord = new \PhpOffice\PhpWord\PhpWord();
|
||||||
$section = $phpWord->createSection();
|
$section = $phpWord->addSection();
|
||||||
$section->addText('Hello World!');
|
$section->addText('Hello World!');
|
||||||
$file = 'HelloWorld.docx';
|
$file = 'HelloWorld.docx';
|
||||||
header("Content-Description: File Transfer");
|
header("Content-Description: File Transfer");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user