3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ [ "Some key here" => 26542973, "generated key" => "John", "who knows what key" => 10 ], [ "Some key here" => 26542973, "generated key" => "", "who knows what key" => "" ], [ "Some key here" => "", "generated key" => "", "who knows what key" => "" ], ]; $arr = array_filter($arr, function($val){ return implode("", $val) != ""; }); print_r($arr);
based on ogZ4L
Output for 5.6.38 - 7.3.0rc3
Array ( [0] => Array ( [Some key here] => 26542973 [generated key] => John [who knows what key] => 10 ) [1] => Array ( [Some key here] => 26542973 [generated key] => [who knows what key] => ) )