title: how to turn a command line cURL request into php?
body: <p>I am trying to make a php script that will use this new site called Oanda and trade virtual money on the Forex market. </p>
  
  <p>I am trying to convert this command line code in to php: </p>
  
  <pre><code>$curl -X POST -d "instrument=EUR_USD&amp;units=1000&amp;side=buy&amp;type=market" https://api-fxpractice.oanda.com/v1/accounts/6531071/orders
  </code></pre>
  
  <p>If anyone can give source code or explain what the <code>-X POST</code> and the <code>-d</code> mean and how to convert them to php that would be awesome. </p>
  
  <p>Thank you for your help!</p>