- urldecode: documentation ( source)
- http_build_query: documentation ( source)
<?php
$filter = [
'and' => [
[
'content' => ['like' => 'Foobar'],
],
[
'or' => [
['tags.alias' => 'tag1'],
['tags.alias' => 'tag2'],
],
],
],
];
echo urldecode(http_build_query(['filter' => $filter]));