now there is an ajax local refresh, which I want to write. Concatenate a string on the server and return it to the client, but it is illegal to write like this, how to write it better? I have tried. The ternary operator is fine, but it is not suitable for the current demand
echo "3333" . (if ($a==1) {
$a
}else{$b});