Hey everyone,
I'm working on a project and I ran into a problem. I have the contents of a switch in a variable (held as a string, of course).
Now I want to put that string inside an actual switch. I was wondering if it is possible to do this, and if so, how?
Thanks very much in advance!
for($a=0; $a<$rows; $a++)
{
$appendMeToSwitchMe =
"CASE \"$layer1[$a]\":" .
"include(\"$includePath/$layer1[$a]\");" .
"BREAK;";
$switchMe = $switchMe . $appendMeToSwitchMe;
}
switch($action)
{
echo($switchMe); //this part needs some help...
.......
Again, Thanks so much!
Ted