- urlencode: documentation ( source)
- http_build_query: documentation ( source)
<?php
echo urlencode(http_build_query(array( // rq=0&wid=34&t=1&ss=1366x768&bw=160&winid=29&cttl=4748
'rq' => 0,
'wid' => 34,
't' => 1,
'ss' => '1366x768',
'bw' => 160,
'winid' => 29,
'cttl' => 4748,
)));