jg485 Posted November 17, 2011 Share Posted November 17, 2011 Hi everyone. I'm just working my way through the section on empty and isset functions. On page 123, Larry writes that isset is more commonly used for validating checkboxes. Is there a reason for this? Will empty or rather !empty not work for that purpose? Thanks. Link to comment Share on other sites More sharing options...
Jonathon Posted November 17, 2011 Share Posted November 17, 2011 They're are subtle differences between how they interpret values and what they return for empty strings etc. Larry answered a similar question here http://www.larryullman.com/forums/index.php?/topic/684-isset-and-empty/page__hl__%2Bisset+%2Bempty__fromsearch__1 1 Link to comment Share on other sites More sharing options...
jg485 Posted November 18, 2011 Author Share Posted November 18, 2011 Thanks Jonathon. I must have missed that thread when I was searching the forums! Link to comment Share on other sites More sharing options...
Jonathon Posted November 18, 2011 Share Posted November 18, 2011 No problem Link to comment Share on other sites More sharing options...
Recommended Posts