Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: userc865b
Added: Jan 11, 2019 7:55 AM
Views: 33
Tags: php
  1. addslashes(string)
  2.  
  3. // alternatively
  4.  
  5. $this->$field=str_replace("\"","\\\"",$this->$field);