title: Cannot get parameters off url in POST request php
body: <p>I Have a url here which I am using to send a post request to my server and I want to catch the <code>EventType</code>, <code>RessourceId</code>, and <code>Date</code>, and put their values in a array if possible.
   I am trying so many methods but for some reason I cannot get those information.</p>
  
  <p>Here is the url</p>
  
  <pre><code>//POST
    https://localhost/hello/index.php/kyc_succeeded_hook?EventType=SUCCEEDED&amp;RessourceId=1309853&amp;Date=1397037093
  </code></pre>
  
  <p>I used first this method,</p>
  
  <pre><code>$data = file_get_contents("php://input");
          var_dump($data);
       //I get nothing back.
  </code></pre>
  
  <p>Then I tried this </p>
  
  <pre><code>$Query_String  = explode("&amp;", explode("?", $_SERVER['REQUEST_URI'])[1] );
       var_dump($Query_String);
  </code></pre>
  
  <p>I get values back like this in postman if I echo it</p>
  
  <pre><code>&lt;pre class='xdebug-var-dump' dir='ltr'&gt;
      &lt;b&gt;array&lt;/b&gt;
      &lt;i&gt;(size=3)&lt;/i&gt;
    0
      &lt;font color='#888a85'&gt;=&amp;gt;&lt;/font&gt;
      &lt;small&gt;string&lt;/small&gt;
      &lt;font color='#cc0000'&gt;'EventType=SUCCEEDED'&lt;/font&gt;
      &lt;i&gt;(length=23)&lt;/i&gt;
    1
      &lt;font color='#888a85'&gt;=&amp;gt;&lt;/font&gt;
      &lt;small&gt;string&lt;/small&gt;
      &lt;font color='#cc0000'&gt;'RessourceId=1309853'&lt;/font&gt;
      &lt;i&gt;(length=19)&lt;/i&gt;
    2
      &lt;font color='#888a85'&gt;=&amp;gt;&lt;/font&gt;
      &lt;small&gt;string&lt;/small&gt;
      &lt;font color='#cc0000'&gt;'Date=1397037093'&lt;/font&gt;
      &lt;i&gt;(length=15)&lt;/i&gt;
  &lt;/pre&gt;
  &lt;pre class='xdebug-var-dump' dir='ltr'&gt;
      &lt;small&gt;string&lt;/small&gt;
      &lt;font color='#cc0000'&gt;''&lt;/font&gt;
      &lt;i&gt;(length=0)&lt;/i&gt;
  &lt;/pre&gt;
  </code></pre>
  
  <p>I am not sure how to put those values in a array.</p>