- http_build_query: documentation ( source)
<?php
echo http_build_query(array(
'client' => 'x',
'text' => $this->encodeRequestText($text),
'hl' => 'ru',
'sl' => $from,
'tl' => 'i' . $to,
'multires' => 1,
'otf' => 1,
'ssel' => 1,
'tsel' => 1,
'uptl' => 'ru',
'sc' => 1,
));