@@ 222-227 (lines=6) @@ | ||
219 | ||
220 | } else { |
|
221 | // Got more than 1 match return array contains string or sub-array |
|
222 | foreach ($matches as &$row) { |
|
223 | array_shift($row); |
|
224 | if (1 == count($row)) { |
|
225 | $row = $row[0]; |
|
226 | } |
|
227 | } |
|
228 | } |
|
229 | ||
230 | return $matches; |
@@ 248-255 (lines=8) @@ | ||
245 | } |
|
246 | ||
247 | // Remove first element of match array, the whole match str part |
|
248 | foreach ($matches as &$row) { |
|
249 | if (1 < count($row)) { |
|
250 | array_shift($row); |
|
251 | } |
|
252 | if (1 == count($row)) { |
|
253 | $row = $row[0]; |
|
254 | } |
|
255 | } |
|
256 | unset($row); |
|
257 | ||
258 | // Simplify |