Re: XML

"clemens fischer" <[email protected]>
Newsgroups gmane.comp.lang.ruby.german
Organization no
Message-ID <[email protected]>
> Tobias Huesgen:

> >> 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.

ich hab's immer noch nicht gerafft.  sind PHP variablen zwei-wege
assoziativ zu denken?  mein problem:

 echo $variable; //Output = "Eine Variable";

"variable" ist der wert von $var1.  assoziativ (wie etwa awk arrays) kaeme
ich damit auf $var1, und von da zum wert von $$var1.  oder koennte mir
jemand ein diagramm malen?

clemens
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.