|
| parseQueriesOfURL (string $query_string) |
| Must return an associative array of key => value pairs from the given query string. More...
|
|
|
const | PATTERN = '/([^=&]*)=([^=&]*)/m' |
|
◆ parseQueriesOfURL()
ilCtrlQueryRegexParser::parseQueriesOfURL |
( |
string |
$query_string | ) |
|
Must return an associative array of key => value pairs from the given query string.
- Parameters
-
- Returns
- array<string, string>
Implements ilCtrlQueryParserInterface.
Definition at line 28 of file class.ilCtrlQueryRegexParser.php.
30 preg_match_all(self::PATTERN, $query_string, $matches, PREG_SET_ORDER, 0);
31 $query_parameters = [];
32 foreach ($matches as $match) {
33 $query_parameters[$match[1]] = $match[2];
36 return $query_parameters;
◆ PATTERN
const ilCtrlQueryRegexParser::PATTERN = '/([^=&]*)=([^=&]*)/m' |
|
private |
The documentation for this class was generated from the following file: