PHP shorthand if echo else assign variable

后端 未结 0 457
[愿得一人]
[愿得一人] 2020-12-31 16:18

I want to write this in one line if possible:

if ($some_var === true) {
 $return .= $input;
} else {
 echo $input;
}

Obviously I don\'t want

相关标签:
回答
  • 消灭零回复
提交回复
热议问题