protected function getQueryParam($param, $url) {
    $keys = [];
    $parse = parse_url($url);
    parse_str($parse['query'], $keys);

    if (isset($keys[$param])) {
      return $keys[$param];
    }

    return FALSE;
  }
protected function getQueryParam($param, $url) {
    $keys = [];
    $parse = parse_url($url);
    parse_str($parse['query'], $keys);

    if (isset($keys[$param])) {
      return $keys[$param];
    }

    return FALSE;
  }
protected function getQueryParam ( $ param , $ url ) { $ keys = [ ] ; $ parse = parse_url ( $ url ) ; parse_str ( $ parse [ 'query' ] , $ keys ) ; if ( isset ( $ keys [ $ param ] ) ) { return $ keys [ $ param ] ; } return FALSE ; }
Get specified query param from url.

@param string $param
Param name.
@param string $url
Param name.

@return mixed
Param value or FALSE.
Get specified query param from url .