/ Published in: PHP
URL: http://www.phpro.org/examples/Get-Text-Between-Tags.html
pretty usefull
Expand |
Embed | Plain Text
function getTextBetweenTags($string, $tagname) { $pattern = "/<$tagname>(.*?)<\/$tagname>/"; return $matches[1]; }
You need to login to post a comment.
