Posted By

zack on 06/16/11


Tagged


Versions (?)

php parse url


 / Published in: PHP
 

  1. <?php
  2. $url = 'http://username:password@hostname/path?arg=value#anchor';
  3.  
  4.  
  5. echo parse_url($url, PHP_URL_PATH);
  6. ?>

Report this snippet  

You need to login to post a comment.