title: How to read GET values from HTTP_REFERER with PHP
body: <p>How can I read the values of get header variables which are from <code>$_SERVER["HTTP_REFERER"]</code> such as if I had <code>index.php?col=example&amp;order=example2</code> how could I read the values of col and order from the string which is received from <code>$_SERVER["HTTP_REFERER"]</code> and would this be safe?</p>
  
  <p>I thought of using strpos() but that would mean I would have to make a function to find the position of <code>col</code> for example and then read the value starting from thr <code>=</code> and stop at the next <code>&amp;</code> or null value if only one get header is set...</p>