How extract part of an URL in PHP?

Posted by achairapart on Stack Overflow See other posts from Stack Overflow or by achairapart
Published on 2010-05-20T11:55:09Z Indexed on 2010/05/20 12:00 UTC
Read the original article Hit count: 124

Filed under:
|

So, I have this url in a string:

http://www.domain.com/something/interesting_part/?somevars&othervars

in PHP, how I can get rid of all but "interesting_part"?

© Stack Overflow or respective owner

Related posts about php

Related posts about regex