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 { } 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/ 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
Archived
This topic is now archived and is closed to further replies.