PHP code example of open-api-tools / query-parser
1. Go to this page and download the library: Download open-api-tools/query-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
open-api-tools / query-parser example snippets
$parser = new \OpenApiTools\QueryParser\OpenApiQueryParser();
$parser->parse('id=1&id=2&id=3');
// returns
[
'id' => [
'1',
'2',
'3',
],
];