php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42149 array_keys documentation phrasing
Submitted: 2007-07-30 17:00 UTC Modified: 2007-07-31 08:19 UTC
From: scot at wilcoxon dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: scot at wilcoxon dot org
New email:
PHP Version: OS:

 

 [2007-07-30 17:00 UTC] scot at wilcoxon dot org
Description:
------------
Problem in the documentation for array_keys http://us.php.net/manual/en/function.array-keys.php

The phrase "As of PHP 5, this parameter is for if strict comparision (===) should be used." should be rewritten.  I have not checked the code but suspect the meaning is "As of PHP 5, if this parameter is specified as TRUE then comparison should be done with the "===" operator."  But without checking the code I do not know whether "comparison should be done" is not as correct as "comparison must be done".


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-30 17:04 UTC] scot at wilcoxon dot org
Perhaps the intended meaning is "As of PHP 5, if this parameter is TRUE then strict comparison ("===") will be used when comparing the search parameter with the key values."
 [2007-07-31 08:19 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"As of PHP 5, this parameter determines if strict comparision (===) should be used during the search."
 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=05c7b748be80d54554b3d7d6b1e552fe38d7f3f3
Log: Fix #42149 - Better description of the strict comparison search option.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Aug 13 17:00:02 2025 UTC