read from multiple defines
Posted: Wed Feb 16, 2005 9:44 am
mhhhh
i made some defines with a loop
but how can i use a loop to read from these defines ? i tried eval and this version. Must be quite simple, but I can't figure it out
i made some defines with a loop
Code: Select all
for ($i=0; $i<5; $i++) {
define("_PARAM_EMAIL".$i,"email".$i);
}Code: Select all
for ($i=0; $i<5; $i++) {
echo {_PARAM_EMAIL.$i};
}