From c62faaaa035fd5531f7f5ade066e99cfec374181 Mon Sep 17 00:00:00 2001 From: Ahmad Syamim Date: Sun, 8 Jan 2023 15:09:31 +0800 Subject: [PATCH] Update recipes.rst --- docs/recipes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/recipes.rst b/docs/recipes.rst index 5042cdedc6..b470d28615 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");