Well, of course you have the stripslahes() function ni PHP...
But, i need a function that strips the slashes of a whole string except for the part that is between <ascii> </ascii>.
So if i have this string:
$str = "Hello, I\'m a \string <ascii>And I\'M looking good</ascii> Bal bla"
And you do the function i want to have this string
$str = "Hello, I'm a string <ascii>And I\'M looking good</ascii> Bal bla"
I tried to look into regular expressions, but they aren't that easy to understand for a hobbycoder...
any help will be appreciated...
TBA


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks