jg485 0 Posted November 17, 2011 Report 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. Quote Link to post Share on other sites
Jonathon 255 Posted November 17, 2011 Report 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 Quote Link to post Share on other sites
jg485 0 Posted November 18, 2011 Author Report Share Posted November 18, 2011 Thanks Jonathon. I must have missed that thread when I was searching the forums! Quote Link to post Share on other sites
Jonathon 255 Posted November 18, 2011 Report Share Posted November 18, 2011 No problem Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.