输出结果里面的[1]=>bc是怎么得到的?
$subject = "abcdef"; $pattern = '/a(.*?)d/'; preg_match($pattern, $subject, $matches); print_r($matches); //结果为:Array ( [0] => abcd [1] => bc ) //输出结果里面的[1]=>bc是怎么得到的?
$subject = "abcdef"; $pattern = '/a(.*?)d/'; preg_match($pattern, $subject, $matches); print_r($matches); //结果为:Array ( [0] => abcd [1] => bc ) //输出结果里面的[1]=>bc是怎么得到的?
2015-01-28
举报