开发者

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

开发者 https://www.devze.com 2023-03-25 00:51 出处:网络
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.

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

精彩评论

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