- print_r: documentation ( source)
- implode: documentation ( source)
- array_filter: documentation ( source)
<?php
$arr = [
[
"Some key here" => 26542973,
"generated key" => "John",
"who knows what key" => 10
],
[
"Some key here" => "",
"generated key" => "",
"who knows what key" => ""
],
];
$arr = array_filter($arr, function($val){
return implode("", $val) != "";
});
print_r($arr);