BracketPath
Stateless resolution of legacy bracket-path parameter names (e.g.
“data[0][Application]”) against a plain nested array.
Synopsis
Section titled “Synopsis”final class BracketPath
| Source | Request/BracketPath.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
resolve(string $path, array<array-key, mixed> $rootArray): mixed | Manual, conservative bracket path resolution for nested parameters like foo[0][bar]. |
resolve()
Section titled “resolve()”public static function resolve(string $path, array<array-key, mixed> $rootArray): mixed
Manual, conservative bracket path resolution for nested parameters like foo[0][bar].
| Parameter | Type | Description |
|---|---|---|
$path | string | |
$rootArray | array``<``array-key``, ``mixed``> |
Returns mixed