PHP 配列から空白要素を削除する 配列 $array_exampleの要素のなかで、空白のものを削除。 $array_example = array_filter($array_example, ‘strlen’);