Cerchi con Google come fare le chiamate post... oppure usi questo snippet

Codice PHP:
  $url='https://www.sandbox.paypal.com/cgi-bin/webscr';
  
$data=array(
   
'dato1'=>'valore1'
   
'dato2'=>'valore2'
   
'dato3'=>'valore3' 
  
);
  
$options = array(
    
'http' => array(
      
'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
      
'method'  => 'POST',
      
'content' => http_build_query($data),
    ),
  );
  
$context=stream_context_create($options);
  
$result=file_get_contents($urlfalse$context);