I have a question, what is the most optimal way for replace the strings for example, I want to replace \n and \r\n with ''. I have 2 options :
Replaces nested:
SELECT REPLACE(REPLACE(m3.old_message,'\n',''),'\r\n','')
Preg replace:
if ($aField== 'user') { $sValue = preg_replace... }
Thx in advance.