How to get the values in between tags

<?php

$v = "this is test <abcd>value1 ok</abcd> dont know tell me <abcd>value33 kooo ok</abcd> this is php regress <abcd>teeth value</abcd> ok how";
preg_match_all("#<abcd>([^<]+)</abcd>#", $v, $foo);
echo implode("\n", $foo[1]);

?>
Author: bm on January 22, 2014
Category: php

Your comment:

Your Name

Comment:




Last articles