i have parms that are sent to the server
i want to read them ina loop
like this
for($i=0;$i<10;++$i){
echo eval('date'+$i);
}
but it isnt working!
why?
thanks in advance
peleg
using eval() or any otherway to get a value of something lik
Moderator: General Moderators
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
there is no problem addin an int to string it gives u string an that all the purpose!
second in many languages u sue eval to access variables and arrays dynamicly
which onlly in run time u will know to whome to access beacuse of that for example in javascript u can access an array like this :
eval("arr"+i)[2]=5;
second in many languages u sue eval to access variables and arrays dynamicly
which onlly in run time u will know to whome to access beacuse of that for example in javascript u can access an array like this :
eval("arr"+i)[2]=5;