- http_build_query: documentation ( source)
<?php
echo http_build_query(
array(
'query' => array(
array('field' =>'cycle', 'where' => 'and', 'type'=>'between', 'from' => 1, 'to'=>100),
array('field'=>'cycle', 'where' => 'and', 'type' => 'decimation', 'value' => 10)
),
'orderBy' => array('columnOne' => 'ASC', 'columnTwo' => 'DESC')
)
);