Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- error_reporting(1);
- $txt = "<specialtag>нужная инфа1</specialtag>
- блаблабла
- блаблабла
- <specialtag>нужная инфа2</specialtag>
- блаблабла;";
- preg_match_all("#<specialtag>(.*)</specialtag>#iUs",$txt,$res);
- foreach ($res[1] as $value) echo $value . "<br>";
- ?>
Add Comment
Please, Sign In to add comment