alxkolm

http_build_query

Aug 9th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. $q = [
  3.     'filter' => [
  4.         'byType' => [
  5.             [
  6.                 'type_id' => 1,
  7.                 'price_from' => 100,
  8.                 'price_to' => 20000
  9.             ],
  10.             [
  11.                 'type_id' => 2,
  12.                 'price_from' => 10000,
  13.                 'price_to' => 9999999
  14.             ]
  15.         ],
  16.     ]
  17. ];
  18. echo urldecode(http_build_query($q));
Advertisement
Add Comment
Please, Sign In to add comment