How to get the content in <td> </td>

Source: Internet
Author: User
How to get the content in & lt; td & gt? & Lt; table & nbsp; & gt; & lt; tr & gt; & lt; td & nbsp; & gt; & lt; a & nbsp; nameto133 & nbsp; & gt; trademark name & lt; a & gt; & l how to getContent in?
















Trademark Name

Shang Shancai

Registration No./Application No. 9326603
International Classification 14 Application date

How to GetThank you for posting the source code !!!!!
------ Solution --------------------

This post was last edited by xuzuning on 10:53:31

$ S = <HTML
















Trademark Name

Shang Shancai

Registration No./Application No. 9326603
International Classification 14 Application date

HTML;
Preg_match_all ('# <(td) [^>] *> (. +) Print_r ($ r [2]);
Array
(
[0] => trademark name
[1] =>

Shang Shancai


[2] => Registration No./Application No.
[3] = & gt; 9326603
[4] => International Classification
[5] => 14
[6] => application date
[7] => 2011/4/12
)


------ Solution --------------------
Reference:
Thank you very much. It would be better to remove the html tag at the same time, as shown in figure

In an array loop, use strip_tags ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.