Sorry for the lack of inifo but I appreciate the help. I plan to make this so I only have to update it once per year. Here is what I have so far:
<?php
function display($current_zone)
{
$zone1 = "content will go here";
$zone2 = "content will go here";
$zone3 = "content will go here";
$zone4 = "content will go here";
$zone5 = "content will go here";
$zone[17] = "$zone2";
$zone[18] = "$zone2";
$zone[19] = "$zone2";
$zone[20] = "$zone2";
$zone[21] = "$zone2";
$zone[22] = "$zone2";
$zone[23] = "$zone2";
return "$zone[$current_zone]";
}
//get week and display appropriate zone
$current_zone = date("z")+1;
echo display($current_zone);
?>
In the script above, I left out $zone[1] through $zone[16] and $zone[24] through $zone[31] for brevity in this post.
I am able to make this script work. What I would like to do is be able to specify a range of numbers such as
$zone[17 through 23] so that I can clean up the code (it would be grotesque to have 365 lines for the year)
I have tried
$zone[range(17,23)] = "$zone2";
and
$zone[17,18,19,20,21,22,23] = $zone2";
and of course neither of them have worked.
Thanks again for helping out.