I have this php function that I created that is basically a switch statement. For each case, the $team_image variable is saved to a different value. It looks a little something like this:
function teamImage($team)
{
switch($team)
{
case "Baltimore Orioles":
$team_image = "orioles";
case "New York Yankees":
$team_image = "yankees";
case "Toronto Blue Jays":
$team_image = "bluejays";
You get the idea. However, when I call on the function and try to use the $team_image variable in other parts of my code, it doesn't work because apparently, the variable is still undefined. any thoughts?
Thanks,
Lance