|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-16 07:38 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 21:00:02 2025 UTC |
The following script doesn't work correctly. It should print "My Message: Hello World\nArray ( [1] => Hello [2] => World )". Instead it prints "My Message: \nArray ( [FIRST] => Hello [SECOND] => World )". <? define("FIRST", 1); define("SECOND", 2); static $myArray = array(FIRST => "Hello", SECOND => "World"); print("My Message:". $myArray[FIRST] ." ". $myArray[SECOND] ."<BR>\n"); print_r($myArray); ?>