get query string from url

    0

    0

    jvit
    JVIT PHP

    eg: param1=10&param2[]=1

    Shortcut: url.queryString

    /**
    * get query string
    * @param string $url
    * @return string
    */
    function getQueryStringFromUrl($url)
    {
      return parse_url($url, PHP_URL_QUERY);
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.