|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-31 15:46 UTC] torben@php.net
[2001-01-31 15:53 UTC] colin at easydns dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 15:00:02 2025 UTC |
Take this script: <?php define(TEST_VAR, 100 ); class test_class { var $codes = array( TEST_VAR => "hello" ); } $x = new test_class; print_r($x->codes); ?> This outputs: Array ( [TEST_VAR] => hello ) whereas I figure it should output: Array ( [100] => hello ) No?