Tiny
Tiny

Reputation: 21

PHP $_GET issue

I hope you can help me with this issue, I like to do this with PHP for example:

?id=5&language=en

Firstly the ?id=5 is a simple page, also language is defined in directories, but I wanna to make this

?id=5,en

I don't like to put &language=en, only comma and en How can I do this ?

Upvotes: 2

Views: 134

Answers (1)

David Gillen
David Gillen

Reputation: 1172

list($id, $lang) = explode(',', $_GET['id']);

And then use $id and $lang how you want.

Upvotes: 10

Related Questions