chaitanyaSingh Posted May 6, 2015 Share Posted May 6, 2015 Which is better empty() or == "" Quote Link to comment Share on other sites More sharing options...
CroNiX Posted May 6, 2015 Share Posted May 6, 2015 It depends on what you're testing for. They don't do exactly the same thing. empty() tests for an empty string (like == ''), and a lot more. See the manual. Quote Link to comment Share on other sites More sharing options...
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.