From c05cde20fd7e587f1a0284f96e89f77ccf5488c0 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 12 Apr 2005 07:40:55 +0000 Subject: [PATCH] Floats in array key (bug #32671) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@184200 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/language/types.xml b/language/types.xml index e46f86719a..3f41037468 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -1336,7 +1336,9 @@ echo $arr[12]; // 1 be interpreted as such (i.e. "8" will be interpreted as 8, while "08" will be interpreted as - "08"). There are no different indexed and + "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.