I am working with a mysqldump file that has escaped character sequences. I need to know the length of a string as its database value, but there are escape characters in the dump that add length to the string.
I used stripslashes() , which correctly cancels one or two quotes, but does not touch \r\n .
I am worried that there are other escape sequences of characters that I don't know. Is there a function that I can use that will give me the true length of the string, as it would be in the database? If I need to create my own function, what other sequences should handle?
string php escaping
user151841 Aug 24 '11 at 15:47 2011-08-24 15:47
source share