Guys,
I defined a group of constant in a data.php.
define(MON1,"Jan");
define(MON2,"Feb");
define(MON3,"Mar");
define(MON4,"Apr");
.
.
.
Is there any way that I can use some code to retrive the data dynamically?
I tried to do this but it didn't work.
$varname = "MON";
for ($i=1; $i<$max; $++){
print $varname.$i;}
There are many other way to get the solution. But I want to understand deeper the concept. If you have any idea, please let me know. Thanks!
Johnny:>


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks