>>865
hoge.phpの中身をfunctionにしたら?

hoge.php 
<?php 
function response_msg($hoge){
if($hoge == "1"){ 
 return "ねこ"; 

if($hoge == "2"){ 
 return "いぬ"; 

?> 

index.php 
<?php 
 $hoge = "1"; 
 include 'hoge.php'; 
  echo response_msg($hoge);
?> 

index2.php 
<?php 
 $hoge = "2"; 
 include 'hoge.php'; 
  echo response_msg($hoge);
?>