How to retrieve query string value from URL value stored in a variable?

Posted by user187580 on Stack Overflow See other posts from Stack Overflow or by user187580
Published on 2010-06-17T13:24:22Z Indexed on 2010/06/17 13:33 UTC
Read the original article Hit count: 153

Filed under:
|

Hello,

$url = 'http://www.domain.com/file.php?dir=r&hl=100,200&ord=3&key=a+b+c';

If it were a url I could get value of hl by, say, $_GET['hl']. but how do I retrieve the same from $url string.

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about querystring