* Extracts fields inside curly braces from the path string. */
(string $path)
| 196 | * Extracts fields inside curly braces from the path string. |
| 197 | */ |
| 198 | private function extractArrayFields(string $path): array { |
| 199 | preg_match_all("/(?<={).*(?=})/", $path, $matches); |
| 200 | return $matches[0] ?? []; |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * If an absolute path precedes the array fields, extract the sub-array. |