Posted By

robnilas on 01/21/17


Tagged


Versions (?)

If is $var show $var if not show $vardefault


 / Published in: PHP
 

  1. if(isset($variable)) {
  2. echo "variable is set to '$variable'";
  3. }
  4. else {
  5. echo "variable is not set";
  6. }

Report this snippet  

You need to login to post a comment.