$mm=1;
$bb=66;
if(isset($mm)){
$temp.=' +def'; elseif(isset($cc)){
$temp.=' +gh'
}
elseif(isset($bb)){
$temp.=' +gh' }
else{
$temp= '+mnb';
}
echo $temp;
たとえば、isset($mm) と isset($bb) のみが true であることを認識する方法。 abc+def +mnb です
asp で if then を使用できます。このような関数を PHP で実装するにはどうすればよいですか?