note 7732 deleted from Geltungsbereich von Variable by ronabop
| From: | ronabop@php.net | Date: | Sat, 12 Aug 2000 22:55:49 +0000 |
| Subject: | note 7732 deleted from Geltungsbereich von Variable by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1753@lists.php.net to get a copy of this message | ||
How can I set an arry global?
$CAR["GERMAN"][] = "BMW";
$CAR["GERMAN"][] = "Mercedes";
function test() {
global $CAR["GERMAN"][];
echo $CAR["GERMAN"][0];
echo $CAR["GERMAN"][1];
}
It doesn't work! Why not? Who could help me?
thanx