php string escaping like python's """ """? -


hi wondering if there easy way escape strings in php.

in python use """ """, , between there escaped. when using special characters ignored.

i have text echo, , escaping manually takes forever.

does php have similar function built in ?

thanks!

which characters have escape?

you use single quotes [docs]. characters have escaped in such string \ , '.

if have long string, have @ heredoc [docs].


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -