Floats in array key (bug #32671)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@184200 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-04-12 07:40:55 +00:00
parent e02994b466
commit c05cde20fd

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.152 $ -->
<!-- $Revision: 1.153 $ -->
<chapter id="language.types">
<title>Types</title>
@ -1336,7 +1336,9 @@ echo $arr[12]; // 1
be interpreted as such (i.e. <literal>"8"</literal> will be
interpreted as <literal>8</literal>, while
<literal>"08"</literal> will be interpreted as
<literal>"08"</literal>). There are no different indexed and
<literal>"08"</literal>).
Floats in <varname>key</varname> are truncated to <type>integer</type>.
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.
</para>