Hi I wonder if this could be done in switch case. Here's the example code I wanna do
switch($name)
case "Dog":
$pic = "/images/itscute.jpg";
$info ="four legs";
break;
case "Cat":
$pic = "/images/cat.jpg";
$info ="four legs";
break;
case "bird":
$pic = "/images/bird.jpg";
$info = "two legs";
break;
Now you can see that both of dog and cat have the same value of $info. Does it possible for me to make $info only one for both of them like this
switch($name)
case "Dog":
case "Cat":
$info ="four legs";
break;
case "bird":
$info = "two legs";
break;
then again I don't know how to place the $pic if the code like this.
EDIT : $pic at dog is not "/images/dog.jpg";
EDIT2 : added more case to be more clear question