How to getWhat's in it?
| Trademark Name |
Shang |
Registration number/Application number |
9326603 |
| International Classification Number |
14 |
Application Date |
2011/4/12 |
How to getIn the content, thank you, can you put out the source code!!!!!
------Solution--------------------
This post was last edited by xuzuning on 2014-03-26 10:53:31
$s =<<< HTML
| Trademark Name |
Shang |
Registration number/Application number |
9326603 |
| International Classification Number |
14 |
Application Date |
2011/4/12 |
HTML;
Preg_match_all (' #< (TD) [^>]*> (. +)
print_r ($r [2]);
Array
(
[0] + = trademark Name
Shang
[2] = = Registration number/Application number
[3] = 9326603
[4] = = International Classification No.
[5] = 14
[6] = = Application Date
[7] = 2011/4/12
)
------Solution--------------------
References:
Thank you very much, if you can also remove the HTML tag is better, such as
Array loop, pair value with Strip_tags ()