$date = array("11/11/2017","12/11/2017","13/11/2017","14/11/2017","15/11/2017","16/11/2017"," "," ","","");
print_r(array_filter($date, function($value) { return trim($value) !== ''; }));
Maybe the problem is that the values aren't empty, but have a space in there? This function should get rid of that for you.