Lines Matching refs:matches

37 …/^([0-9]{4})([0-1][0-9])([0-3][0-9])T([0-2][0-9])([0-5][0-9])([0-5][0-9])([Z]?)$/', $dt, $matches);
43 if ($matches[7] === 'Z' || is_null($tz)) {
48 …new DateTimeImmutable($matches[1] . '-' . $matches[2] . '-' . $matches[3] . ' ' . $matches[4] . ':…
68 $result = preg_match('/^([0-9]{4})([0-1][0-9])([0-3][0-9])$/', $date, $matches);
79 $date = new DateTimeImmutable($matches[1] . '-' . $matches[2] . '-' . $matches[3], $tz);
101 …)?((?<day>\d+)D)?(T((?<hour>\d+)H)?((?<minute>\d+)M)?((?<second>\d+)S)?)?$/', $duration, $matches);
110 if ($matches['plusminus'] === '-') {
123 … $matches[$part] = isset($matches[$part]) && $matches[$part] ? (int)$matches[$part] : 0;
129 $days = $matches['day'];
131 if ($matches['week']) {
132 $days += $matches['week'] * 7;
139 if ($matches['minute'] || $matches['second'] || $matches['hour']) {
143 if ($matches['hour']) {
144 $duration .= $matches['hour'] . 'H';
147 if ($matches['minute']) {
148 $duration .= $matches['minute'] . 'M';
151 if ($matches['second']) {
152 $duration .= $matches['second'] . 'S';
182 if (isset($matches[$part]) && $matches[$part]) {
183 $newDur .= ' ' . $matches[$part] . ' ' . $part . 's';
187 $newDur = ($matches['plusminus'] === '-' ? '-' : '+') . trim($newDur);
298 if (!preg_match($regex, $date, $matches)) {
323 if (!preg_match($regex, $date, $matches)) {
341 if (empty($matches[$part])) {
343 } elseif ($matches[$part] === '-' || $matches[$part] === '--') {
346 $result[$part] = $matches[$part];
413 if (!preg_match($regex, $date, $matches)) {
429 if (!preg_match($regex, $date, $matches)) {
444 if (empty($matches[$part])) {
446 } elseif ($matches[$part] === '-') {
449 $result[$part] = $matches[$part];
540 if (0 === preg_match($valueDate, $date, $matches)
541 && 0 === preg_match($valueDateTime, $date, $matches)
542 && 0 === preg_match($valueTime, $date, $matches)) {
565 if (!empty($matches[$part])) {
566 $value = $matches[$part];