arunpatal Posted February 22, 2014 Share Posted February 22, 2014 Hi, i have an array... i want to use it with if statement.. if (any element of array is empty then) { some code } else { } Quote Link to comment https://forums.phpfreaks.com/topic/286408-check-if-array-contain-empty-element/ Share on other sites More sharing options...
Ch0cu3r Posted February 22, 2014 Share Posted February 22, 2014 Loop through the array checking each value as you go. http://jsfiddle.net/nGPu2/ Quote Link to comment https://forums.phpfreaks.com/topic/286408-check-if-array-contain-empty-element/#findComment-1470052 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.