<?php
$request 
= array(
    
'version' => '1.1.0',
    
'host' => 'example.com',
    
'wifi_towers' => array(
        array( 
'ssid' => 'ZyXEL_3934rar''mac_address' => "00:02:CF:E4:60:CE" )
    )
);
$c curl_init();
curl_setopt$cCURLOPT_URL'https://www.google.com/loc/json' );
curl_setopt$cCURLOPT_POST);
curl_setopt$cCURLOPT_POSTFIELDSjson_encode$request ) );
curl_setopt$cCURLOPT_RETURNTRANSFERtrue );

var_dumpcurl_exec$c ) );
Output