Posted By

zack on 06/16/11


Tagged


Versions (?)

Finding The Query String In a URL


 / Published in: PHP
 

URL: http://www.learnphponline.com/php-basics/how-to-find-the-current-url-in-php

  1. <?php
  2. # Using QUERY_STRING
  3.  
  4. $queryString = $_SERVER['QUERY_STRING'];
  5.  
  6. echo "Query: " . $queryString;
  7.  
  8. ?>

Report this snippet  

You need to login to post a comment.