fork download
  1. <?php
  2.  
  3. function Clear_Value(&$arg){
  4.  
  5. if ($arg == 'NONE') $arg = '';
  6. }
  7.  
  8. $one = 'One';
  9. $two = 'Two';
  10. $three = 'NONE';
  11. $four = 'Four';
  12.  
  13. Clear_Value($one);
  14. Clear_Value($two);
  15. Clear_Value($three);
  16. Clear_Value($four);
  17.  
  18. echo $one."\n";
  19. echo $two."\n";
  20. echo $three."\n";
  21. echo $four."\n";
Success #stdin #stdout 0.03s 13112KB
stdin
Standard input is empty
stdout
One
Two

Four