From 08064480ea915a7283a5a09ba68ad04869cb259e Mon Sep 17 00:00:00 2001 From: Ahmad Syamim Date: Sun, 8 Jan 2023 16:39:08 +0800 Subject: [PATCH] Update recipes.rst (#2367) --- docs/recipes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/recipes.rst b/docs/recipes.rst index 5042cded..b470d286 100644 --- a/docs/recipes.rst +++ b/docs/recipes.rst @@ -29,7 +29,7 @@ Use ``php://output`` as the filename. .. code-block:: php $phpWord = new \PhpOffice\PhpWord\PhpWord(); - $section = $phpWord->createSection(); + $section = $phpWord->addSection(); $section->addText('Hello World!'); $file = 'HelloWorld.docx'; header("Content-Description: File Transfer");