Posted by rog on 02/26/07 20:53
I have some variables, $unit1, $unit2 and $unit3, that I would like to read from a loop like this (or any other way): for($x=1;$x<=3;$x++) { $str='unit' . $x echo eval($str); } The debugger shows $str as '$unit1' but eval() gives a parse error. Can someone give a tip? Thanks, Roger
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming