PHP judges a variable with a simple problem. if the variable is empty, it is not executed, for example, if ($ a), but what I mean by not executing html is not executed, that is to say, if ($ a) (false) {html not displayed} does not know how to write, according to the above writing, there will be an error ------ solution ------------------ exit ()? ------ Solution -------------------- & lt ;? Phpif (! PHP is a simple problem
Judge a variable. if the variable is null, it is not executed, for example, if ($ a), but I mean not to execute html, that is, if ($) (false) {html not displayed
} I don't know how to write it. if I follow the above instructions, an error will occur.
------ Solution --------------------
Exit ()?
------ Solution --------------------
If (! Empty ($ )){
?>
Html --- html -----
}
?>
Or
Echo! Empty ($ )? '$ A actually appears': 'vice versa ';
?>
------ Solution --------------------
If ($ ){
?>
Display html code ................
------ Solution --------------------
------ Solution --------------------
Ob function control available