A situation where isset makes sense for me is checking $_POST. It's completely legitimate for a key to not be have been sent by the client.
In this case you’d be interested in both questions: does a value exist and is it something useful. I agree, it makes sense.
You could use filter_input and get much more useful info back than isset.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A situation where isset makes sense for me is checking $_POST. It's completely legitimate for a key to not be have been sent by the client.
In this case you’d be interested in both questions: does a value exist and is it something useful. I agree, it makes sense.
You could use filter_input and get much more useful info back than isset.