求php正规则表达式。提取数据存入数组。

WBOY
Release: 2016-06-23 13:14:12
Original
827 people have browsed it

<html>			<head>			</head>			<body>			<p>用户积分</p>			<table>			<tr>				<td>账号</td>				<td>积分     </td><td>ok</td><td>user    </td>			</tr>					<tr>	<td>zzw.Mac.2104001</td>	<td>25383</td>	<td>0</td>	<td>0</td></tr><tr>	<td>zzw.Mac.2104002</td>	<td>26619</td>	<td>0</td>	<td>0</td></tr><tr>	<td>zzw.Mac.2104003</td>	<td>27269</td>	<td>0</td>	<td>0</td></tr></table></body>		</html>		  
Copy after login


各位大师,用什么方法才能将上面的html代码中的用户账号和积分分别存入php两个数组中。


回复讨论(解决方案)

simple_html_dom

抓取分割!simple_html_dom 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template