title: Send object with $http post in angular to a PHP array key=>value
body: <p>I'm trying to send an Object to PHP wit POST and convert it to an associative array</p>
  
  <pre><code>    postData: function(word, description, translate) {
          var formData = {
              w: word, 
              d: description, 
              t: trasnlate
          };
  
          $http({ 
              method: 'POST', 
              url: 'db.php', 
              headers: {'Content-Type': 'application/x-www-form-urlencoded'},
              data: formData
          }).
              success(function(data, status, headers, config) {
                  console.log(data);
              }).
              error(function(data, status, headers, config) {
  
              });
      }
  </code></pre>
  
  <p>db.php</p>
  
  <pre><code>print_r($_POST); 
  </code></pre>
  
  <p>console.log(data):</p>
  
  <pre><code> Array(
  [{"w":"word","d":"description","h":"translate"}] =&gt; )
  </code></pre>
  
  <p>and I want something like this:</p>
  
  <pre><code> Array(
  [w] =&gt; word
  [d] =&gt; description
  [t] =&gt; translate
  </code></pre>
  
  <p>)</p>