Here is my code,
$ip = array([0]=>'1.1.1.1' [1]=> '2.2.2.2')
$ux = RestClient::post($url,array('requestType'=>'Ip',
'username' => 'user',
'pass' =>'user',
'type'=>$type,
'ip'=>array($ip)
));
echo $ux->getResponse();
How to post 'ip' at server side? When I use $_POST['id'], it returns 'Array' as string.