How to get URL parameter in PHP?

Spread the love

Sometimes, we want to get URL parameter in PHP.

In this article, we’ll look at how to get URL parameter in PHP.

How to get URL parameter in PHP?

To get URL parameter in PHP, we use the $_GET array.

For instance, we write

echo $_GET["link"];

to echo the query parameter value with key link.

Conclusion

To get URL parameter in PHP, we use the $_GET array.

Leave a Reply

Your email address will not be published.