I need a way to remove the surrounding square brackets from this using only php:
[txt]text[/txt]
So the result should be: text
They will always occur in matched pairs.
They always will be at the start and end of the string. Thet will always be [txt1][/txt1] or [url2][/url2]
How can i do it?