title: How to get URL argument in Page body by PHP?
body: <p>On a Drupal site, PHP code is enabled for Page body content. How can I get the argument and its value in PHP code? For example, I'd like to get <code>ref</code> and <code>33002</code> from:</p>
  
  <pre><code>http://example.com/node/1?ref=33002
  </code></pre>
  
  <p>In the following code:</p>
  
  <pre><code>&lt;?php 
    print arg(0);
    print arg(1);
    print arg(2);
    print arg(3);
  ?&gt;
  </code></pre>
  
  <p>I can get <code>node</code> and <code>1</code>, but nothing about <code>ref</code> or <code>33002</code>.</p>
  
  <p>Thanks!</p>