PHP - remove empty strings of array doesn't work : I've got an array by scrape an website. It contains some **empty strings** and I want to remove that array-elements. I tried already apply_filter($array). Also I tried to iterate and filter out this elements manually, but it doesn't work. Now I found out, that I can't access this elements at all: 

                      foreach($array as $elem){
                        if($elem == " " || $elem == " ")
                          echo "Want access this: " . elem . "<br>";
                          //No Output here
                      }


So maybe this elements are not empty Strings? But what else could it be? Here the output of var_dump of the Array:

        array(47) { [0]=> string(31) "16.11.2016" [1]=> string(23) " " [2]=> string(21) "" [3]=> string(21) "" [4]=> string(21) "" [5]=> string(21) "" [6]=> string(21) "" [7]=> string(21) "" [8]=> string(31) "18.01.2017" [9]=> string(148) "
    "Therapie des fortgeschrittenen Prostatakarzinoms" - Online-Vortrag von Prof. Dr. Thomas Steuber, Martiniklinik Hamburg
    
    " [10]=> string(21) "" [11]=> string(21) "" [12]=> string(31) "15.02.2017" [13]=> string(139) "Gesprächsabend mit Prof. Dr. Christiansen (onkologische Strahlentherapie) und Prof. Dr. Bengel (Nuklearmedizin) - MHH" [14]=> string(21) "" [15]=> string(21) "" [16]=> string(21) "" [17]=> string(23) " " [18]=> string(21) "" [19]=> string(21) "" [20]=> string(31) "15.03.2017" [21]=> string(83) "Komplementärmedizin - Integrative Medizin - Alternativmedizin" [22]=> string(21) "" [23]=> string(21) "" [24]=> string(21) "" [25]=> string(23) " " [26]=> string(21) "" [27]=> string(21) "" [28]=> string(19) "19.04.2017" [29]=> string(21) "" [30]=> string(21) "" [31]=> string(21) "" [32]=> string(21) "" [33]=> string(40) "10.05.2017     " [34]=> string(142) "
    Kontinenztherapie nach Prostata-OP - Referent Prof. Dr. U. Otto, Quellentalklinik Reinhardshausen (Onlinevortrag)
    
    " [35]=> string(42) "21.06.2017       " [36]=> string(20) "19.07.2017 " [37]=> string(32) "16.08.2017 " [38]=> string(32) "20.09.2017 " [39]=> string(160) "
    Internetbasierte Informations- und Entscheidungshilfe für Patienten mit nicht-metastasiertem Prostatakrebs (Internetseite des BPS)
    
    " [40]=> string(32) "18.10.2017 " [41]=> string(116) "
    Fatigue - Referentin: Frau Sabine Malinka, Krebsberatungszentrum Hannover im [ka:punkt]
    
    " [42]=> string(31) "15.11.2017" [43]=> string(21) "" [44]=> string(20) "20.12.2017 " [45]=> string(19) "17.01.2018" [46]=> string(9) "" }

