<?php
$jstring = '{
"responseHeader": {
"status": 0,
"QTime": 617,
"params": {
"indent": "true",
"q": "*cat*",
"_": "1477957184587",
"wt": "json"
}
},
"response": {
"numFound": 211689,
"start": 0,
"docs": [
{
"id": 151419929185,
"blogId": 118735857,
"type": "photo",
"ts": 1475746080,
"_version_": 1547431931177599000
},
{
"id": 151419930356,
"blogId": 267658313,
"type": "photo",
"ts": 1475746084,
"_version_": 1547431931181793300
},
{
"id": 151419929352,
"blogId": 244420775,
"type": "text",
"ts": 1475746086,
"_version_": 1547431931201716200
},
{
"id": 151419930663,
"blogId": 103909184,
"type": "photo",
"ts": 1475746088,
"_version_": 1547431934254121000
},
{
"id": 151419931641,
"blogId": 211342713,
"type": "photo",
"ts": 1475746088,
"_version_": 1547431934260412400
},
{
"id": 151419931512,
"blogId": 312028424,
"type": "text",
"ts": 1475746094,
"_version_": 1547431939495952400
},
{
"id": 151419924069,
"blogId": 277487309,
"type": "photo",
"ts": 1475746075,
"_version_": 1547431924888240000
},
{
"id": 151419929371,
"blogId": 267658313,
"type": "photo",
"ts": 1475746080,
"_version_": 1547431924891385900
},
{
"id": 151419935235,
"blogId": 237075104,
"type": "text",
"ts": 1475746100,
"_version_": 1547431943599030300
},
{
"id": 151419792023,
"blogId": 305604685,
"type": "text",
"ts": 1475745612,
"_version_": 1547431948834570200
}
]
}
}';
$pstring = json_decode($jstring, true);
print(http_build_query(['query' => $pstring]));
preferences:
46.82 ms | 402 KiB | 5 Q