rel=“nofollow”>document。
matches
Array of all matches in multi-dimensional array ordered according to flags.
The default flags
argument is PREG_PATTERN_ORDER
:
Orders results so that $matches[0] is an array of full pattern
matches, $matches[1] is an array of strings matched by the first
parenthesized subpattern, and so on.
因此,对于您来说,$matches [0]
是与您的格格格文相匹配的座标的array,$matches > > 是array<> > > > >与>/code>对应的子座标的>>> > > /em> 对应的座标的代号:<2><<><>>><>>>>>>>>>>>>> >。 例如:
php >print_r($matches[2]);
Array
(
[0] => 061-4313.20080226.Sw39i/iPhone1,1_1.1.4_4A102_
[1] => 061-4313.20080226.Sw39i/iPhone1,1_1.1.4_4A102_
[2] => 061-4313.20080226.Sw39i/iPhone1,1_1.1.4_4A102_
[3] => 061-4313.20080226.Sw39i/iPhone1,1_1.1.4_4A102_
... etc etc
)
因此,$matches[j][i]
系指jth lect group of the ith对等。 (带) 是整个配对座标。