#42149 [Opn]: array_keys documentation phrasing

From: Date: Mon, 30 Jul 2007 17:04:57 +0000
Subject: #42149 [Opn]: array_keys documentation phrasing
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377189@lists.php.net to get a copy of this message
ID: 42149 User updated by: scot at wilcoxon dot org Reported By: scot at wilcoxon dot org Status: Open Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment: 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." Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc (#969377189) next »