Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $html = "<span><div class=apples> text </div> <div class=vip> text2 </div> <div class=vip> vip1 </div> <div class=food> textf </div> <div class=vip> vip14 </div><div class=vip> vip16 t</div> <div class=vip> text6 </div></span>";
- preg_match("/<div class=vip>(.*?)</div></span>/is", $html, $matches);
- foreach($matches[1] as $divvip){
- echo $divvip;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement