im trying to mediaplayer embed echo with IF statement. is there any way to replace all quotation marks (") with (\")?
thank..
For comments and other answers, indicate that your question may not be explicit enough. If you just want to replace double quotes ( "), you should use str_replace ()
"
str_replace('"', '\"', $string);
addslashes will do the trick.
addslashes
It will return a new line with all quotation marks ( ' and " ) with its escaped copies.
'
Source: https://habr.com/ru/post/1740696/More articles:Invalid numbering number - package signature Error: continued "figure" after the "table" - latexThe server selected an unsupported or disabled protocol: SSLv3 - exceptionMulti-line cropping - linuxerror: expected constructor, destructor, or type conversion to '(' token - c ++Can NP-Intermediate Exist if P = NP? - complexity-theoryShow form from another form - c #JavaScript hint - is it ok to use? Or is it acting weird in some browsers? - javascriptAny other Task Queue APIs? - google-app-engineSubmit program password WordPress programmatically - postTrying to pack TCP with non-blocking IO is hard! Am I doing something wrong? - javaAll Articles