StringParser
- Full name:
\Codefy\Framework\Support\StringParser
Methods
parse
Parse a query string into an associative array, and merge with defaults.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$query | string | The query string to parse. |
$defaults | array | An array of default values. |
$strict | bool | If true, skip malformed entries. |
assignValue
Assign a value to an array, handling PHP-style array keys (e.g., foo[]=bar).
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$target | array | |
$key | string | |
$value | mixed |
Automatically generated on 2025-10-13