正则匹配输出的数组为什么是这样的。
<?php
$p = "/<tr><td>(.*?)<\/td>\s*<td>(.*?)<\/td>\s*<\/tr>/i";
$str = "<table> <tr><td>Eric</td><td>25</td></tr> <tr><td>John</td><td>26</td></tr> </table>";
preg_match_all($p, $str, $matches);
print_r($matches);
$matches:
Array
(
[0] => Array
(
[0] => Eric25
[1] => John26
)
[1] => Array
(
[0] => Eric
[1] => John
)
[2] => Array
(
[0] => 25
[1] => 26
)
)哪位大神能给解释一下?