It seems to be simple, but I have problem.
ereg_replace("\n","\\n",$row)
into preg_replace.
Anyone could give me a hand?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only thing you need to change (except function name) is to add delimiters to the pattern (slashes in this case):
However, in this particular case you do not need to use regexes (which are slow enough), simple str_replace would be fine: