Is there a way to simplify this? I think there is, but I’m too tired to figure it out…
$array1=array("Header1","Header 2","Header Three");
$some_array=array("Some header","Other header");
$array3=array("Fubar","BarFu","FooBar");
...
if($page=="array1")
{
return $array1[$type];
}
if($page=="some_array")
{
return $some_array[$type];
}
...
$page and $type are already set.
Thanks.