If I type in example.com/file.php?a=1&b=2&c=3&d=4&e= the echo is executed. I've tried doing this on different variations (empty, !empty, isset, !isset, etc) and cannot manage to get the echo to not execute. I did a vars dump and for the last variable, it said something like string(0) ""
Ideally, I'd like to test to see if each variable is empty, but I figured that'd be easy once I figure out how to get one of them to work....
Can someone please let me know what I am doing wrong and if there is a better way to do it? Even if there is a better way, I would like to know what am I missing when trying to do it this way.... Thanks for the help!
Reading the empty function info on php.net it seems empty is true if the variable doesn't exist or the value of the variable = false. Your var dump indicates the variable e exists (it is a string with no date in it) so it is set (isset won't work).