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

From: Date: Tue, 04 Dec 2007 12:06:52 +0000
Subject: #43496 [Opn]: doc updation related to array_combine()/array
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-319@lists.php.net to get a copy of this message
ID: 43496 User updated by: dharma dot yp at in dot ibm dot com -Summary: doc updation related to array_combile()/array Reported By: dharma dot yp at in dot ibm dot com Status: Open Bug Type: Documentation problem Operating System: Not applicable PHP Version: Irrelevant New Comment: Sorry for typo error. This defect is for array_combine() and not for array_combile() Previous Comments: ------------------------------------------------------------------------ [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 (#319) next »