note 21573 added to language.types.array
| From: | coder at ryanbelanger dot com | Date: | Fri, 17 May 2002 19:13:16 +0000 |
| Subject: | note 21573 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30763@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.
--
http://www.php.net/manual/en/language.types.array.php
http://master.php.net/manage/user-notes.php?action=edit+21573
http://master.php.net/manage/user-notes.php?action=delete+21573
http://master.php.net/manage/user-notes.php?action=reject+21573