Answer the question
In order to leave comments, you need to log in
Replacing double quotes with regular expression in PHP?
Hello!
Please tell me how to remove double quotes from a string like:;
"History of SE "Blago" in pictures"; that is, what would happen
; "History of GP Blago in pictures";
I know that a regular expression can help, but I can't compose. Is this even possible, who knows? I will be very grateful !
Answer the question
In order to leave comments, you need to log in
str_replace('"', '', "История ГОПНИКА "Благо" в картинках");
You should not remove the quotes, but escape them
. Depending on where it is used, you need either double quotes "" or \" (escaping with a slash)
There are functions for escaping everywhere.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question