PHP Code:
else if
$show = $mob1;
else
$show = $mob2;
return $show;
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in /home/abcd/public_html/index.php on line 25
else if
$show = $mob1;
else
$show = $mob2;
return $show;
else if(your condition){
$show = $mob1;
}else{
$show = $mob2;
}
return $show;
elseif($condition) {
$show = $mob1;
}
else {
$show = $mob2;
}
return $show;
else if
$show = $mob1;
else
$show = $mob2;
return $show;
else if (<condition>)
$show = $mob1;
else
$show = $mob2;
return $show;
Comment