Reputation: 33956
I want to check with PHP if ?u= exists, even if it hasn't any value assigned.
E.G: http://website.com/?u= should return true.
http://website.com/?u=
How can I do it?
Upvotes: 0
Views: 69
Reputation: 13614
You can check the return value of isset($_GET['u']).
isset($_GET['u'])
isset
Upvotes: 5