Moin!
meinst du so?
for($i=0; $i<$dynamische_zahl; $i++) {
$array[] = $i;
}
Nicht ganz, es sollte besser so sein:
$array = array();
for($i=0; $i<$dynamische_zahl; $i++) {
$array[$i]=$i;
}
Oder was ganz verrücktes: Anwendung der Range-Funktion!
$array = range(0,$dynamische_zahl - 1);
- Sven Rautenberg
--
"Love your nation - respect the others."
"Love your nation - respect the others."