teng84 Posted July 2, 2007 Share Posted July 2, 2007 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 Link to comment https://forums.phpfreaks.com/topic/58017-escape-the-escape/ Share on other sites More sharing options...
c4onastick Posted July 2, 2007 Share Posted July 2, 2007 "\\" should work. Windows (you wouldn't have this problem on a *NIX machine) has some issues with that though, I've had to use four "\\\\" to get what I wanted before. Moral of the story: try more! Link to comment https://forums.phpfreaks.com/topic/58017-escape-the-escape/#findComment-287647 Share on other sites More sharing options...
Wildbug Posted July 2, 2007 Share Posted July 2, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.