<?php parse_str(string $string, array &$result): void
<?php $query = []; parse_str($url['query'], $query); // simply ingest query as extra params, e.g. charset or sslmode return array_merge($params, $query); // parse_str wipes existing array elements }
<?php ); $params = []; parse_str($queryString, $params); self::assertArrayHasKey('connectionParams', $params);