aus einer Variablen-Wert eine Veriable oder Array machen

Alles, was PHP betrifft, kann hier besprochen werden.

aus einer Variablen-Wert eine Veriable oder Array machen

Postby tHarry » 02. July 2003 15:12

Hallo!

Folgender Variable möchte ich zu einem Array machen!

$arr = "ROOT[1][2]";
$$arr = "test";

oder so?

$idt = "[0][1]";
$ROOT.$idt = "test";

ich brauche das, weil ich Datensätze in einem Array (ROOT) einfügen möchte, ohne das ich vorher weiß, wieviele Arrays in einem
Array eingefügt werden!

... $ROOT[1] = "";
... $ROOT[2][1] = "";
... $ROOT[2][2][1] = "";
... $ROOT[3] = "";

Ich hoffe mir kann da wer helfen...

Liebe Grüße,
Harald van Zee
Whistler/Sp2, AMD2000+, Xampp 1.5.2,
Whistler/Sp2, P4/2Ghz, Xampp 1.5.2,
Apache und MySQL als Service
---------------
Max OS X 10.4 - iBook G4 - Xampp 0.5
tHarry
 
Posts: 54
Joined: 19. April 2003 17:58

Postby tHarry » 03. July 2003 14:40

? hallo?
Whistler/Sp2, AMD2000+, Xampp 1.5.2,
Whistler/Sp2, P4/2Ghz, Xampp 1.5.2,
Apache und MySQL als Service
---------------
Max OS X 10.4 - iBook G4 - Xampp 0.5
tHarry
 
Posts: 54
Joined: 19. April 2003 17:58

Postby tHarry » 04. July 2003 11:12

Naja... Problem gelöst!
Whistler/Sp2, AMD2000+, Xampp 1.5.2,
Whistler/Sp2, P4/2Ghz, Xampp 1.5.2,
Apache und MySQL als Service
---------------
Max OS X 10.4 - iBook G4 - Xampp 0.5
tHarry
 
Posts: 54
Joined: 19. April 2003 17:58


Return to PHP

Who is online

Users browsing this forum: No registered users and 19 guests