|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-16 17:00 UTC] stas@php.net
[2001-05-06 11:38 UTC] zeev@php.net
[2001-09-24 03:29 UTC] jeroen@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 23:00:01 2025 UTC |
It seems that array keys of type real are not allowed in class declaration: class MyClass { var $a = array( 1.5=>1, 3.5=>2, 7.5=>5, 99=>10); ... } Results in only one item 99=>10 in array. Above is accepted in PHP3. Workaround: var $a = array( '1.5'=>1, '3.5'=>2, '7.5'=>5, '99'=>10);