fork download
  1. <?php
  2.  
  3. function print_query($not_loaded) {
  4. $sql = 'select ... ';
  5. $sql .= !$not_loaded ?: ' append';
  6.  
  7. echo $sql;
  8. }
  9.  
  10. echo print_query(true);
  11. echo ' --- ';
  12. echo print_query(false);
Success #stdin #stdout 0.02s 23544KB
stdin
Standard input is empty
stdout
select ...   append --- select ...  1