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 Quote Link to comment 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! Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.