note 86060 added to function.parse-url

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
I need to parse out the query string from the referrer, so I created this function.

function parse_query($val)
 {
  /** 
   *  Use this function to parse out the query array element from
   *  the output of parse_url().
   */
  $var  = html_entity_decode($var);
  $var  = explode('&', $var);
  $arr  = array();

  foreach($var as $val)
   {
    $x          = explode('=', $val);
    $arr[$x[0]] = $x[1];
   }
  unset($val, $x, $var);
  return $arr;
 }
----
Server IP: 208.69.120.35
Probable Submitter: 68.238.158.178
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit        -- https://master.php.net/note/edit/86060
Del: integrated  -- https://master.php.net/note/delete/86060/integrated
Del: useless     -- https://master.php.net/note/delete/86060/useless
Del: bad code    -- https://master.php.net/note/delete/86060/bad+code
Del: spam        -- https://master.php.net/note/delete/86060/spam
Del: non-english -- https://master.php.net/note/delete/86060/non-english
Del: in docs     -- https://master.php.net/note/delete/86060/in+docs
Del: other reasons-- https://master.php.net/note/delete/86060
Reject      -- https://master.php.net/note/reject/86060
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.