fork download
  1. <?php
  2. function quote_skip($data) {
  3. $data = str_replace("'", "\'", $data);
  4. echo "Output inside the function quote_skip: ".$data." <br>\n";
  5. return $data;
  6. }
  7.  
  8. $test = "l'uomo";
  9. $test = quote_skip($test);
  10. echo "Output outside the function quote_skip: ".$test."<br>\n";
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Output inside the function quote_skip: l\'uomo <br>
Output outside the function quote_skip: l\'uomo<br>