Doc #73227 [Com]: Doccumentation unclarity.
| From: | carteeg at gmail dot com | Date: | Wed, 02 Nov 2016 13:35:51 +0000 |
| Subject: | Doc #73227 [Com]: Doccumentation unclarity. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14056@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73227&edit=1
ID: 73227
Comment by: carteeg at gmail dot com
Reported by: mev5me at yandex dot ru
Summary: Doccumentation unclarity.
Status: Open
Type: Documentation Problem
Package: Documentation problem
Operating System: Ubuntu
PHP Version: 7.1.0RC3
Block user comment: N
Private report: N
New Comment:
The documentation is correct.
The phrase "need not" means "do not need to".
So "Functions need not be defined before they are referenced." means "Functions do
not need to be defined before they are referenced."
Example 2 is showing this explicitly by having the reference occur before the definition.
Previous Comments:
------------------------------------------------------------------------
[2016-10-02 11:04:27] mev5me at yandex dot ru
Description:
------------
May be my English is not perfect, but
http://php.net/manual/en/functions.user-defined.php
says: "Functions need not be defined before they are referenced". And than *Example #2*
example shows how function being used BEFORE define (bar()`). Isn't in weird or unclear?
function myF () {...} - is it defining?
myF(); - is it reference?
Nowhere says it is possible, because interpreter reads .php files first and than execute.
PHP 7 documentation is missing too.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73227&edit=1