Print Html/Multiline Data In Php

<?php
$str= <<<aRzHtmlData
<p>one
two</p>
<p>three</p>
aRzHtmlData;
preg_match_all('/<p>(.*?)<\/p>/',$str,$r);
print_r($r);
?>
Advertisements
By Rz Rasel Posted in Php

16 comments on “Print Html/Multiline Data In Php

  1. Thank you for the sensible critique. Me and my neighbor were just preparing to do some research on this. We got a grab a book from our area library but I think I learned more from this post. I’m very glad to see such fantastic info being shared freely out there.

  2. I needed to thank you for this nice learn!! I definitely having fun with each little little bit of it I’ve you bookmarked to take a look at new stuff you submit

  3. Very nice post. I just stumbled upon your blog and wished to say that I’ve really enjoyed surfing around your blog posts. In any case I will be subscribing to your rss feed and I hope you write again soon!

  4. Hi there it’s me, I am also visiting this web site daily, this website is genuinely nice and the visitors are truly sharing pleasant thoughts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s