note 21573 deleted from language.types.array by torben
| From: | torben@php.net | Date: | Fri, 17 May 2002 19:26:49 +0000 |
| Subject: | note 21573 deleted from language.types.array by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30764@lists.php.net to get a copy of this message | ||
Just an observation :
// These variable definitions are all accepted by PHP
$Msg[firstvalue] = "Sample text 1";
$Msg['secondvalue'] = "Sample text 2";
$Msg["thirdvalue"] = "Sample text 3";
// This outputs : "Sample text 1Sample text 2Sample text 3"
print $Msg[firstvalue] . $Msg[secondvalue] . $Msg[thirdvalue] ;
-----
Note also this INCORRECT use :
print $Msg['firstvalue'] . $Msg["secondvalue"] . $Msg[\"thirdvalue\"]
;
None of these last examples work.