For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > July 2007 > #42149 [Opn->Csd]: array_keys documentation phrasing









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #42149 [Opn->Csd]: array_keys documentation phrasing
rquadling@php.net

2007-07-31, 8:00 am

ID: 42149
Updated by: rquadling@php.net
Reported By: scot at wilcoxon dot org
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
New Comment:

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."


Previous Comments:
------------------------------------------------------------------------

[2007-07-30 17:04:56] 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-30 17:00:58] 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".



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=42149&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com