Lines Matching refs:matches
190 function($matches) {
191 return rawurlencode($matches[0]);
281 $matches = [];
282 if (preg_match('/^(?:(?:(.*)(?:\/+))?([^\/]+))(?:\/?)$/u', $path, $matches)) {
283 return [$matches[1], $matches[2]];
311 function($matches) {
312 return rawurlencode($matches[0]);
327 if (preg_match('% ^([A-Za-z][A-Za-z0-9+-\.]+): %x', $uri, $matches)) {
329 $result['scheme'] = $matches[1];
360 if (!preg_match($regex, $uri, $matches)) {
363 if ($matches['host']) $result['host'] = $matches['host'];
364 if ($matches['port']) $result['port'] = (int)$matches['port'];
365 if (isset($matches['path'])) $result['path'] = $matches['path'];
366 if ($matches['user']) $result['user'] = $matches['user'];
367 if ($matches['pass']) $result['pass'] = $matches['pass'];