开发者

Check with PHP if sending a variable through URL even if it's blank

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.

How can I do it开发者_Python百科?


You can check the return value of isset($_GET['u']).

  • isset documentation
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜