Jump to content

escape the escape


teng84

Recommended Posts

how do i escape the escape character

 

sample this\ gives me error when declade into the pattern i tried this \\ to escape the escape char but it doesnt work??

help

 

Are you putting the pattern in single or double quotes?  Read the PHP manual on escaing in quotes for more info; basically, you only need to escape a backslash within single quotes when it's at the end of the string.

Link to comment
https://forums.phpfreaks.com/topic/58017-escape-the-escape/#findComment-287970
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.