title: cURL to PHP equivalent
body: <p>I am trying to correctly convert a cURL command to PHP, but I can't seem to find the correct commands.  I can run this command with cURL but I need to run this through TROPO, and they only have a few script options.</p>
  
  <p>So I am trying in PHP.</p>
  
  <pre><code>curl https://api.particle.io/v1/devices/310029000547353138383138/setNum \ -d access_token=e650d0dec0476de7d64b23110fed31dcb3cbxxxx \ -d args=2085555555
  </code></pre>
  
  <p>My try, what am I missing?</p>
  
  <pre><code>&lt;?php
      function submitValue() {
        $ch = curl_init("https://api.particle.io/v1/devices/310029000547353138383138/setNum");
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, 'access_token=e650d0dec0476de7d64b23110fed31dcb3cbxxxx&amp;"args=2085555555"');                                                                       
        );
  
        $output = curl_exec($ch);
  
        if (curl_getinfo($ch, CURLINFO_HTTP_CODE) != '200') {
          return null;
        }
        return $output;
      } 
  ?&gt;
  </code></pre>