chaitanyaSingh Posted May 6, 2015 Share Posted May 6, 2015 Which is better empty() or == "" Link to comment https://forums.phpfreaks.com/topic/296108-empty-vs/ 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. Link to comment https://forums.phpfreaks.com/topic/296108-empty-vs/#findComment-1510919 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.