Genau das. Du kannst dir den Variablennamen auch "zusammenbasteln"
z.B.
for ($i=0; i<10;i++){
$$"person_".$i."_vorname"="bla";
$$"person_".$i."_nachname"="blabla";
$$"person_".$i."_telNr"=123;
}
Könnte aber sein daß man eine Klammer braucht also: $$("person_".$i."_vorname")="bla";
Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
|