title: How to return the names of $_GET variables in a url php
body: <p>I want to save the name of all the $_GET variables in a url, but im not sure where to start, or finish for that matter.</p>
  
  <p>For example:</p>
  
  <p>if i have:</p>
  
  <p><code>url: test.com/forums.php?topic=blog&amp;discussion_id=12</code></p>
  
  <p>can i use php to get the name, i.e. "topic" and "discussion_id from the $_GET variables and can i then store the values: "topic" and "discussion_id" in an array?</p>