#43496 [Opn->Csd]: doc updation related to array_combine()/array

From: Date: Sun, 09 Dec 2007 01:12:41 +0000
Subject: #43496 [Opn->Csd]: doc updation related to array_combine()/array
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-337@lists.php.net to get a copy of this message
ID: 43496 Updated by: felipe@php.net Reported By: dharma dot yp at in dot ibm dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Not applicable 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. Previous Comments: ------------------------------------------------------------------------ [2007-12-04 12:06:51] dharma dot yp at in dot ibm dot com Sorry for typo error. This defect is for array_combine() and not for array_combile() ------------------------------------------------------------------------ [2007-12-04 12:02:32] dharma dot yp at in dot ibm dot com Description: ------------ This bug is opened with a reference to the bug#43424 and Ilia Alshanetsky's response to it in which she suggested that a doc defect be opened to address this. Please use the details in bug#43424 and below response. Ilia Alshanetsky <ilia@prohost.org> 01/12/2007 03:12 To Dharmanna Pidagannavar/India/IBM@IBMIN Subject Re: Bug #43424 [Asn->Bgs]: array_combine() doesn't truncate float values while using them as keys The documentation is flawed in this case. If you can, could you please create a phpdoc bug report. On 29-Nov-07, at 2:19 AM, Dharmanna Pidagannavar wrote: > Hi Jani/Iliaa, > Thanks for explanation, now i understand it better. > > It would be nice if the documentation is also changed to reflect the > same > at following location: > 1) array_combine documentation at : > http://in.php.net/manual/en/function.array-combine.php > and/or > 2) Array documentation at : > http://www.php.net/manual/en/language.types.array.php > > The documentation read as: > "A key may be either an integer or a string. If a key is the > standard > representation of an integer, it will be interpreted as such (i.e. > "8" will > be interpreted as 8, while "08" will be interpreted as "08"). Floats > in key > are truncated to integer. There are no different indexed and > associative > array types in PHP; there is only one array type, which can both > contain > integer and string indices. " > > Thank you, > > Regards > Dharma > > Dharmanna Pidagannavar, IBM India. > ----- Forwarded by Dharmanna Pidagannavar/India/IBM on 29/11/2007 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43496&edit=1

« previous php.doc.bugs (#337) next »