|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66546 Re-wording required to enable correctly documented text for the function
Submitted: 2014-01-22 16:56 UTC Modified: 2019-04-01 19:22 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: greg at areteweb dot co dot uk Assigned: girgias (profile)
Status: Closed Package: Arrays related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2014-01-22 16:56 UTC] greg at areteweb dot co dot uk
From manual page:
In the "Description" section, the document states:
> Searches haystack for needle using loose comparison unless strict is set. 

As the function requires "needle" then "haystack", it would make sense to reword the statement to reflect the function's actual requirements.

e.g. change to:
> Searches with needle in haystack using loose comparison unless strict is set. 

It may seem pedantic, but the wording in the current sentence sincerely confused me and I was having errors with the function until I read examples and found the function required needle then haystack.

This change would also bring continuity to the in_array documentation and match the "Parameters" and "Examples" sections.

Kind Regards,


doc-fix-66546 (last revision 2019-01-20 18:00 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 16:57 UTC]
-Type: Feature/Change Request +Type: Documentation Problem -Package: Documentation problem +Package: Arrays related
 [2019-01-11 05:55 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: girgias
 [2019-01-20 18:00 UTC]
The following patch has been added/updated:

Patch Name: doc-fix-66546
Revision:   1548007209
 [2019-04-01 19:16 UTC]
Automatic comment from SVN on behalf of girgias
Log: Fix Doc Bug #66546
 [2019-04-01 19:22 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Aug 20 18:01:31 2019 UTC