title: Check if parameters exist in an URL
body: <p>How can I check if an URL has parameters in it?</p>
  
  <p>for instance, if the string is like this,</p>
  
  <pre><code>form_page_add.php?parent_id=1
  
  return true
  </code></pre>
  
  <p>But if it is like this,</p>
  
  <pre><code>form_page_add.php?
  
  return nothing
  </code></pre>
  
  <p>Thanks.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Sorry for not being clear, the URL is submitted from a from as a string. and I will store that string in a variable,</p>
  
  <pre><code>if(isset($_POST['cfg_path'])) $cfg_path = trim($_POST['cfg_path']);
  </code></pre>
  
  <p>so I need to check this variable <code>$cfg_path whether</code> is has parameters in it.</p>