DuplicateAggregator
in package
implements
QueryAggregatorInterface
Does not aggregate nested query string values and allows duplicates in the resulting array
Example: http://test.com?q=1&q=2
Table of Contents
Interfaces
- QueryAggregatorInterface
- Interface used for aggregating nested query string variables into a flattened array of key value pairs
Methods
- aggregate() : array<string|int, mixed>
- Aggregate multi-valued parameters into a flattened associative array
Methods
aggregate()
Aggregate multi-valued parameters into a flattened associative array
public
aggregate(mixed $key, mixed $value, QueryString $query) : array<string|int, mixed>
Parameters
- $key : mixed
-
The name of the query string parameter
- $value : mixed
-
The values of the parameter
- $query : QueryString
-
The query string that is being aggregated
Return values
array<string|int, mixed> —Returns an array of the combined values