About 49,800 results
Open links in new tab
  1. php - How can I get parameters from a URL string? - Stack ...

    Use the parse_url () and parse_str () methods. parse_url() will parse a URL string into an associative array of its parts. Since you only want a single part of the URL, you can use a shortcut to return a …

  2. How to get parameters from a URL string in PHP?

    Jul 11, 2025 · The parameters from a URL string can be retrieved in PHP using parse_url () and parse_str () functions. Note: The page URL and the parameters are separated by the ? character. …

  3. PHP $_GET Superglobal - W3Schools

    PHP $_GET The $_GET superglobal contains an array of variables received via the HTTP GET method. PHP superglobals are built-in variables that are always accessible in all scopes! There are two main …

  4. PHP: $_GET - Manual

    Query string variables Description ¶ An associative array of variables passed to the current script via the URL parameters (also known as the query string). Note that this array is populated whenever a query …

  5. How to Get URL Parameters in PHP: Extract 'page=12' from the URL

    Nov 23, 2025 · Extracting these parameters is a common task in PHP—whether for pagination, filtering content, or personalizing user experiences. In this blog, we’ll focus on extracting the `page=12` …

  6. php - How to read GET URL parameter? - Stack Overflow

    Jan 9, 2025 · I'm trying to pass a URL as a URL parameter in PHP but when I try to get this parameter I get nothing I'm using the following URL form:

  7. How to Get Parameters from a URL String with PHP - W3docs

    Learn how to get the parameters from a URL string in PHP with the help of our short tutorial. Read on and check out the helpful examples below.

  8. Extracting URL Parameters in PHP: Techniques and Best ...

    Aug 19, 2025 · This comprehensive guide explores various methods for extracting parameters from URL strings in PHP, along with best practices, security considerations, and real-world applications.