Include in Array ausgeben
Richard
- php
Hi,
ich habe folgendes Array:
<?
$texte = array (
1=>"text 1",
2=>"text 2",
3=>"text 3"
);
?>
Wie bekomme ich in eine ZEile dieses Arrays eine Inlude das in etwa so aussieht:
<?include "/include/text_1.inc";?>
Vielen Dank schonmal für eure Hilfe...
Hello,
$_texte = array (
1=>"text 1",
2=>"text 2",
3=>"text 3"
);Wie bekomme ich in eine ZEile dieses Arrays eine Inlude das in etwa so aussieht:
<?include "/include/text_1.inc";?>
so vielleicht?
include ("/include/{$_texte[1]}.inc")
Harzliche Grüße aus http://www.annerschbarrich.de
Tom
Danke schonmal für die Hilfe, aber das Include muss in die Array-Zeile...
Hello,
Danke schonmal für die Hilfe, aber das Include muss in die Array-Zeile...
$_array[1] = 'include';
$_array[2] = '/include/text1.txt';
$_array1;
Meinst Du so?
Harzliche Grüße aus http://www.annerschbarrich.de
Tom