lisovaccaro
lisovaccaro

Reputation: 33956

How do I get the current URL and then get the last words

I want to get the url I'm on and then get what's after the =

For example if I were on: http://chusmix.com/?s=pizza

It should echo pizza

Upvotes: 1

Views: 156

Answers (1)

Gelatin
Gelatin

Reputation: 2413

It's called a query string and can be retrieved via the $_GET associative array.

$_GET["s"]

Upvotes: 4

Related Questions