php remove first

and last

tags from string

请求翻译

How to remove first

and last

tags from string?? example string:
$string = "

text text
text

text

";
php

2个回答