mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
e02994b466
commit
c05cde20fd
1 changed files with 4 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue