Re: XML

"Tobias Huesgen" <[email protected]>
Newsgroups gmane.comp.lang.ruby.german
Message-ID <000f01c24c48$6e8fa860$fe78a8c0@tobiasp3q1o8sl>
Hallo!

>> In PHP könnte man sowas machen:
>> $var1 = "variable";
>> $$var1 = "Eine Variable";
>> echo $variable; //Output = "Eine Variable";
>
> ist das ein typo?  muesste es nicht heissen:
>
> echo $var1; //Output = "Eine Variable";

Nein, eben nicht. Das ist ja der "Witz" daran. :)
Bei $$var1 = "Eine Variable"; wird einer Variablen, dessen Name der Inhalt
von $var1 ist, ein Wert zugewiesen.

mfG Tobias
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.